diff --git a/src/ppu.rs b/src/ppu.rs index b5d51f9..0d5de6b 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -67,12 +67,12 @@ impl BusIo for Ppu { impl Ppu { pub(crate) fn clock(&mut self) { + self.cycle += 1; + if !self.ctrl.lcd_enabled() { return; } - self.cycle += 1; - match self.stat.mode() { PpuMode::OamScan => { if self.cycle >= 80.into() {