Another whoops

This commit is contained in:
Lior Halphon 2017-09-09 19:31:05 +03:00
parent 02841ddde6
commit 14f267b4fa
1 changed files with 3 additions and 1 deletions

View File

@ -1342,6 +1342,8 @@ void GB_cpu_run(GB_gameboy_t *gb)
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;