all repos — mgba @ 13c882411a03ce2adbd1492f7f4fef877b526c7f

mGBA Game Boy Advance Emulator

GB: Fix IRQs trampling each other if two happen mid-instruction
Jeffrey Pfau jeffrey@endrift.com
Sun, 29 May 2016 11:16:51 -0700
commit

13c882411a03ce2adbd1492f7f4fef877b526c7f

parent

f4dc546da68a757b6e8c04a379583909902f3628

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

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

@@ -265,7 +265,7 @@ return;

} gb->cpu->halted = false; - if (!gb->memory.ime) { + if (!gb->memory.ime || gb->cpu->irqPending) { return; }