From 9b77d6c6c32caa03b8ae7ef530404c43db6da901 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 5 Apr 2021 01:20:18 -0500 Subject: [PATCH] fix(cpu): ensure that timer, lcd and sound runs regardless of HALT --- src/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.rs b/src/cpu.rs index 3ca65af..ba954a6 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -105,12 +105,12 @@ impl Cpu { let cycles = self.execute(instr); self.check_ime(); - self.bus.step(cycles); cycles } }; + self.bus.step(cycles); self.handle_interrupts(); cycles