GB: Fix IRQs trampling each other if two happen mid-instruction

This commit is contained in:
Jeffrey Pfau 2016-05-29 11:16:51 -07:00
parent f4dc546da6
commit 13c882411a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}