Permalink
Browse files

GB: Cancel IRQs if interrupt is unasserted before dispatch (fixes #1000

…, #1003)
  • Loading branch information...
endrift committed Mar 1, 2018
1 parent 5df0edb commit b02b9930473ebdde980e73403dae58a2c4516349
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gb/gb.c
View
@@ -612,6 +612,7 @@ void GBDetectModel(struct GB* gb) {
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;

0 comments on commit b02b993

Please sign in to comment.