Another whoops

This commit is contained in:
Lior Halphon 2017-09-09 19:31:05 +03:00
parent 02841ddde6
commit 14f267b4fa

View File

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