fn read16bug(&mut self, a: u16) -> u16 {
        let b = (a & 0xFF00) | ((a + 1) & 0xFF);
        let lo = self.read(a);
        let hi = self.read(b);
        u16::from_be_bytes([hi, lo])
    }
/// Emulates a software bug where only the lower bit wraps around
Emulates a software bug where only the lower bit wraps around
Emulates a software bug where only the lower bit wraps around
fn read16bug(&mut self, a: u16) -> u16 {
        let b = (a & 0xFF00) | ((a + 1) & 0xFF);
        let lo = self.read(a);
        let hi = self.read(b);
        u16::from_be_bytes([hi, lo])
    }
fn read16bug ( & mut self , a : u16 ) -> u16 { let b = ( a & 0xFF00 ) | ( ( a + 1 ) & 0xFF ) ; let lo = self . read ( a ) ; let hi = self . read ( b ) ; u16 :: from_be_bytes ( [ hi , lo ] ) }
Emulates a software bug where only the lower bit wraps around
Emulates a software bug where only the lower bit wraps around
&mut self
a
u16
&mut self
a
u16