all repos — mgba @ b02b9930473ebdde980e73403dae58a2c4516349

mGBA Game Boy Advance Emulator

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
commit

b02b9930473ebdde980e73403dae58a2c4516349

parent

5df0edb2e1bfc14ef3f7fb8e059292b0658c0a5f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gb/gb.csrc/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;