pub fn catch_up(
        &mut self,
        cpu: &mut cpu::Cpu,
        bus: &mut dyn PpuAddressBus,
        framebuffer: &[Cell<u32>; 256 * 240],
    ) {
        let target_cycles = cpu.cycle_count as i32 * 3;
        while self.cycle_count < target_cycles {
            self.step(cpu, bus, framebuffer);
        }
    }
// catches the ppu up to the cpu (approximately)
catches the ppu up to the cpu (approximately)
catches the ppu up to the cpu ( approximately )
pub fn catch_up(
        &mut self,
        cpu: &mut cpu::Cpu,
        bus: &mut dyn PpuAddressBus,
        framebuffer: &[Cell<u32>; 256 * 240],
    ) {
        let target_cycles = cpu.cycle_count as i32 * 3;
        while self.cycle_count < target_cycles {
            self.step(cpu, bus, framebuffer);
        }
    }
pub fn catch_up ( & mut self , cpu : & mut cpu :: Cpu , bus : & mut dyn PpuAddressBus , framebuffer : & [ Cell < u32 > ; 256 * 240 ] , ) { let target_cycles = cpu . cycle_count as i32 * 3 ; while self . cycle_count < target_cycles { self . step ( cpu , bus , framebuffer ) ; } }
catches the ppu up to the cpu (approximately)
catches the ppu up to the cpu ( approximately )
&mut self
cpu
&mut cpu::Cpu
bus
&mut dyn PpuAddressBus
framebuffer
&[Cell<u32>; 256 * 240]
&mut self
cpu
&mut cpu::Cpu
bus
&mut dyn PpuAddressBus
framebuffer
&[Cell<u32>; 256 * 240]