pub fn cycle(&mut self) -> u8 {
        self.pc_history[self.pc_history_pointer as usize] = self.registers.pc;
        self.pc_history_pointer = self.pc_history_pointer.wrapping_add(1) % self.pc_history.len();

        self.handle_ime_delay();

        let mut duration = self.handle_instruction();
        duration += self.handle_interrupt();

        duration
    }
/// Run a fetch, decode, and execute cycle on the CPU
Run a fetch, decode, and execute cycle on the CPU
Run a fetch decode and execute cycle on the CPU
pub fn cycle(&mut self) -> u8 {
        self.pc_history[self.pc_history_pointer as usize] = self.registers.pc;
        self.pc_history_pointer = self.pc_history_pointer.wrapping_add(1) % self.pc_history.len();
        self.handle_ime_delay();
        let mut duration = self.handle_instruction();
        duration += self.handle_interrupt();
        duration
    }
pub fn cycle ( & mut self ) -> u8 { self . pc_history [ self . pc_history_pointer as usize ] = self . registers . pc ; self . pc_history_pointer = self . pc_history_pointer . wrapping_add ( 1 ) % self . pc_history . len ( ) ; self . handle_ime_delay ( ) ; let mut duration = self . handle_instruction ( ) ; duration += self . handle_interrupt ( ) ; duration }
Run a fetch, decode, and execute cycle on the CPU
Run a fetch decode and execute cycle on the CPU
&mut self
&mut self