GB: Cancel IRQs if interrupt is unasserted before dispatch (fixes #1000, #1003)
Vicki Pfau vi@endrift.com
Thu, 01 Mar 2018 10:15:22 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gb/gb.c
→
src/gb/gb.c
@@ -612,6 +612,7 @@
void GBUpdateIRQs(struct GB* gb) { int irqs = gb->memory.ie & gb->memory.io[REG_IF]; if (!irqs) { + gb->cpu->irqPending = false; return; } gb->cpu->halted = false;