mirror of https://github.com/mgba-emu/mgba.git
GB: Fix IRQs trampling each other if two happen mid-instruction
This commit is contained in:
parent
f4dc546da6
commit
13c882411a
|
@ -265,7 +265,7 @@ void GBUpdateIRQs(struct GB* gb) {
|
|||
}
|
||||
gb->cpu->halted = false;
|
||||
|
||||
if (!gb->memory.ime) {
|
||||
if (!gb->memory.ime || gb->cpu->irqPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue