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 369bcc9 commit fd0af73f32cd220fe1739f1c7a9f67d40d017097
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gb/gb.c
View
@@ -526,6 +526,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 fd0af73

Please sign in to comment.