summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-12-22 20:39:35 -0800
committerMichael Pavone <pavone@retrodev.com>2016-12-22 20:39:35 -0800
commit5543eda6041753f6eebf2b99f6f6d5f1ef3ba3ab (patch)
tree6d0a780ebd0fd3b5eb406d48f0e936254d671075
parente4e3bf12290cdb279ec26512ec2d038224beb6b5 (diff)
Fix clearing of interrupt pending flags on control port read in PBC mode
-rw-r--r--sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sms.c b/sms.c
index f94806d..77f984c 100644
--- a/sms.c
+++ b/sms.c
@@ -56,7 +56,7 @@ static uint8_t vdp_read(uint32_t location, void *vcontext)
sms_context *sms = z80->system;
vdp_run_context(sms->vdp, z80->current_cycle);
if (location & 1) {
- sms->vdp->flags &= ~(FLAG2_VINT_PENDING|FLAG2_HINT_PENDING);
+ sms->vdp->flags2 &= ~(FLAG2_VINT_PENDING|FLAG2_HINT_PENDING);
update_interrupts(sms);
return vdp_control_port_read(sms->vdp);
} else {