fix(cpu): ensure that timer, lcd and sound runs regardless of HALT

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-04-05 01:20:18 -05:00
parent 9d2fbd2427
commit 9b77d6c6c3
1 changed files with 1 additions and 1 deletions

View File

@ -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