pub enum MappedAddr {
Rom(u32),
Sram(u32),
Coprocessor,
Open,
}Expand description
The result of a board’s address decode: where a 24-bit CPU address lands.
The bus uses this to route a read/write to the right backing store, and the default
Board::read24 / Board::write24 consume it directly over the board’s own storage.
Variants§
Rom(u32)
Maps into ROM at the given linear byte offset (already mirror-folded to rom_size).
Sram(u32)
Maps into cartridge SRAM at the given offset (already wrapped to sram_size).
Coprocessor
Maps into a coprocessor register window (the board handles it internally).
Open
Open bus / unmapped (returns the last bus value).
Trait Implementations§
Source§impl Clone for MappedAddr
impl Clone for MappedAddr
Source§fn clone(&self) -> MappedAddr
fn clone(&self) -> MappedAddr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MappedAddr
impl Debug for MappedAddr
Source§impl PartialEq for MappedAddr
impl PartialEq for MappedAddr
impl Copy for MappedAddr
impl Eq for MappedAddr
impl StructuralPartialEq for MappedAddr
Auto Trait Implementations§
impl Freeze for MappedAddr
impl RefUnwindSafe for MappedAddr
impl Send for MappedAddr
impl Sync for MappedAddr
impl Unpin for MappedAddr
impl UnsafeUnpin for MappedAddr
impl UnwindSafe for MappedAddr
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