changeset 1119:55ea7f9a4e92

Fix clearing of interrupt pending flags on control port read in PBC mode
author Michael Pavone <pavone@retrodev.com>
date Thu, 22 Dec 2016 20:39:35 -0800
parents c48d5191ddc9
children e9369d6f0101
files sms.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sms.c	Thu Dec 22 19:54:11 2016 -0800
+++ b/sms.c	Thu Dec 22 20:39:35 2016 -0800
@@ -56,7 +56,7 @@
 	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 {