all repos — mgba @ fd0af73f32cd220fe1739f1c7a9f67d40d017097

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

fd0af73f32cd220fe1739f1c7a9f67d40d017097

parent

369bcc95117fb4ae2aad40fc78fa91d71637ccd3

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

jump to
M src/gb/gb.csrc/gb/gb.c

@@ -526,6 +526,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;