pub fn reset(&mut self) {
        for byte in self.ram.iter_mut() {
            *byte = 0;
        }
        self.cpu = CPUState::new();
        self.ppu = PPUState::new();
    }
/// Clears ram as well as cpu and ppu state
Clears ram as well as cpu and ppu state
Clears ram as well as cpu and ppu state
pub fn reset(&mut self) {
        for byte in self.ram.iter_mut() {
            *byte = 0;
        }
        self.cpu = CPUState::new();
        self.ppu = PPUState::new();
    }
pub fn reset ( & mut self ) { for byte in self . ram . iter_mut ( ) { * byte = 0 ; } self . cpu = CPUState :: new ( ) ; self . ppu = PPUState :: new ( ) ; }
Clears ram as well as cpu and ppu state
Clears ram as well as cpu and ppu state
&mut self
&mut self