From 5543eda6041753f6eebf2b99f6f6d5f1ef3ba3ab Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 22 Dec 2016 20:39:35 -0800 Subject: Fix clearing of interrupt pending flags on control port read in PBC mode --- sms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sms.c') 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 { -- cgit v1.2.3