From 14f267b4fa4eb93c0c7c6298c2ada2c829710ee5 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 9 Sep 2017 19:31:05 +0300 Subject: [PATCH] Another whoops --- Core/z80_cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/z80_cpu.c b/Core/z80_cpu.c index 878358d..e7b1b5c 100644 --- a/Core/z80_cpu.c +++ b/Core/z80_cpu.c @@ -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; }