pub struct TennokoeCard {
pub rom: RomCard,
pub ram: Vec<u8>,
pub locked: bool,
/* private fields */
}Expand description
Tennokoe Bank: a 512 KiB HuCard with 8 KiB of backup RAM (four 2 KiB banks) at $80000-$81FFF
of the card’s space (banks $40, mirrored through the 64 KiB up to $8FFFF), locked at power-up
(reads $FF, writes ignored); a write of a non-zero value anywhere in $F0000-$FFFFF unlocks it, a
zero locks it. [emu: MAME pce_tennokoe, whose own comment calls the lock “a complete guess”
(U29, tier 5); none in the library, so only unit-tested.]
Fields§
§rom: RomCard§ram: Vec<u8>§locked: boolImplementations§
Source§impl TennokoeCard
impl TennokoeCard
Trait Implementations§
Source§impl Card for TennokoeCard
impl Card for TennokoeCard
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 TennokoeCard
impl DeviceState for TennokoeCard
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 TennokoeCard
impl RefUnwindSafe for TennokoeCard
impl Send for TennokoeCard
impl Sync for TennokoeCard
impl Unpin for TennokoeCard
impl UnwindSafe for TennokoeCard
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