fix(cpu): ensure that timer, lcd and sound runs regardless of HALT
This commit is contained in:
parent
9d2fbd2427
commit
9b77d6c6c3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue