diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-12-22 20:39:35 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-12-22 20:39:35 -0800 |
commit | 5543eda6041753f6eebf2b99f6f6d5f1ef3ba3ab (patch) | |
tree | 6d0a780ebd0fd3b5eb406d48f0e936254d671075 /sms.c | |
parent | e4e3bf12290cdb279ec26512ec2d038224beb6b5 (diff) |
Fix clearing of interrupt pending flags on control port read in PBC mode
Diffstat (limited to 'sms.c')
-rw-r--r-- | sms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |