fix(cpu): ensure that timer, lcd and sound runs regardless of HALT
This commit is contained in:
@@ -105,12 +105,12 @@ impl Cpu {
|
|||||||
let cycles = self.execute(instr);
|
let cycles = self.execute(instr);
|
||||||
|
|
||||||
self.check_ime();
|
self.check_ime();
|
||||||
self.bus.step(cycles);
|
|
||||||
|
|
||||||
cycles
|
cycles
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
self.bus.step(cycles);
|
||||||
self.handle_interrupts();
|
self.handle_interrupts();
|
||||||
|
|
||||||
cycles
|
cycles
|
||||||
|
|||||||
Reference in New Issue
Block a user