pub struct PopulousCard {
pub rom: RomCard,
pub ram: Vec<u8>,
/* private fields */
}Expand description
Populous: 32 KiB of battery RAM in banks $40-$43 (four 8 KiB banks, not mirrored);
the rest as a plain card. [emu: Mednafen: detected by “POPULOUS” at $1F26; MAME pce_populous
at $80000-$87FFF.] Power-up contents are Mednafen’s $FF (U7: arbitrary for a battery RAM).
Fields§
§rom: RomCard§ram: Vec<u8>Implementations§
Source§impl PopulousCard
impl PopulousCard
Trait Implementations§
Source§impl Card for PopulousCard
impl Card for PopulousCard
Source§fn grounds_cd(&self) -> bool
fn grounds_cd(&self) -> bool
The /CD line: a card grounds it so a CD unit can tell one is inserted.
[doc: wiki HuCard pinout]
Source§fn claims(&self) -> Vec<(usize, usize)>
fn claims(&self) -> Vec<(usize, usize)>
Inclusive (first_page, last_page) ranges over the 8192 pages of 256 bytes.
fn reset(&mut self, _kind: ResetKind, _pins: &mut BoardPins<'_>)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
For an add-on that knows which card it built (the CD unit and its System Card).
Source§impl DeviceState for PopulousCard
impl DeviceState for PopulousCard
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Put the device in a saved state. A device without state accepts only an empty one.
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
What the device is and which media it holds (a card’s ROM by its SHA-1, a disc by its
table of contents): a state is refused by a system whose device answers otherwise.
Auto Trait Implementations§
impl Freeze for PopulousCard
impl RefUnwindSafe for PopulousCard
impl Send for PopulousCard
impl Sync for PopulousCard
impl Unpin for PopulousCard
impl UnwindSafe for PopulousCard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more