pub struct ArcadeSwitches {
pub unmapped_read: u8,
pub shift_read_mask: u8,
pub trigger_reg_read: u8,
pub power_on_ram_byte: u8,
pub reset_clears_registers: bool,
}Expand description
The emulator-only choices (the reference’s ArcadeCard class attributes, its defaults).
Fields§
§unmapped_read: u8[emu: Mednafen, Geargrafx $FF; Mesen2 returns the open bus] a read of a decoded address the card has no register at ($1A0B-$1A0F per port group, $1A80-$1ADF, $1AE6-$1AFD, $1B00-$1BFF)
shift_read_mask: u8[emu: Mednafen, Geargrafx mask to 4 bits; Mesen2 returns the byte written] $1AE4 / $1AE5 reads
trigger_reg_read: u8[emu: Mesen2, Geargrafx read 0; Mednafen falls through to $FF] port register $A on a read
power_on_ram_byte: u8[emu: Mednafen zeroes the RAM at power-up; Mesen2 uses its configurable random fill] the real RAM is unspecified (U7 again)
reset_clears_registers: bool[emu: Geargrafx clears the ports and the shift unit on reset; Mednafen has no reset, Mesen2 none visible] a warm reset leaves the registers alone unless this is true
Trait Implementations§
Source§impl Clone for ArcadeSwitches
impl Clone for ArcadeSwitches
Source§fn clone(&self) -> ArcadeSwitches
fn clone(&self) -> ArcadeSwitches
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 ArcadeSwitches
impl Debug for ArcadeSwitches
Source§impl Default for ArcadeSwitches
impl Default for ArcadeSwitches
Source§impl PartialEq for ArcadeSwitches
impl PartialEq for ArcadeSwitches
impl Copy for ArcadeSwitches
impl Eq for ArcadeSwitches
impl StructuralPartialEq for ArcadeSwitches
Auto Trait Implementations§
impl Freeze for ArcadeSwitches
impl RefUnwindSafe for ArcadeSwitches
impl Send for ArcadeSwitches
impl Sync for ArcadeSwitches
impl Unpin for ArcadeSwitches
impl UnwindSafe for ArcadeSwitches
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