Another whoops
This commit is contained in:
parent
02841ddde6
commit
14f267b4fa
@ -1341,8 +1341,10 @@ void GB_cpu_run(GB_gameboy_t *gb)
|
||||
if (!gb->halted) {
|
||||
interrupt_queue |= gb->future_interrupts & gb->interrupt_enable;
|
||||
}
|
||||
|
||||
|
||||
gb->io_registers[GB_IO_IF] |= gb->future_interrupts;
|
||||
gb->future_interrupts = 0;
|
||||
|
||||
if (interrupt_queue) {
|
||||
gb->halted = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user