pub fn read_register(&mut self, m: &dyn Mapper, address: u16) -> u8 {
        match address {
            0x2002 => self.read_status(),
            0x2004 => self.read_oam_data(),
            0x2007 => self.read_data(m),
            _ => 0,
        }
    }
/// Needs the wrapper because it might read from CHR data
Needs the wrapper because it might read from CHR data
Needs the wrapper because it might read from CHR data
pub fn read_register(&mut self, m: &dyn Mapper, address: u16) -> u8 {
        match address {
            0x2002 => self.read_status(),
            0x2004 => self.read_oam_data(),
            0x2007 => self.read_data(m),
            _ => 0,
        }
    }
pub fn read_register ( & mut self , m : & dyn Mapper , address : u16 ) -> u8 { match address { 0x2002 => self . read_status ( ) , 0x2004 => self . read_oam_data ( ) , 0x2007 => self . read_data ( m ) , _ => 0 , } }
Needs the wrapper because it might read from CHR data
Needs the wrapper because it might read from CHR data
&mut self
m
&dyn Mapper
address
u16
&mut self
m
&dyn Mapper
address
u16