summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-05-15 23:39:15 -0700
committerMichael Pavone <pavone@retrodev.com>2020-05-15 23:39:15 -0700
commit49bede17e123b3a1e5b128207c4f6e12a29f466d (patch)
tree1b3890f91552657b38f617103205bc82c7ae50f2
parentbcab7a0e684615ed01fc1db1745fbd1f2bc3dc27 (diff)
Fix regression in Mode 4 support caused by address/cd latch changes
-rw-r--r--vdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdp.c b/vdp.c
index f1d1065..5b9f163 100644
--- a/vdp.c
+++ b/vdp.c
@@ -3787,6 +3787,7 @@ int vdp_control_port_write(vdp_context * context, uint16_t value)
//context->flags &= ~FLAG_READ_FETCHED;
//context->flags2 &= ~FLAG2_READ_PENDING;
} else {
+ clear_pending(context);
context->flags &= ~FLAG_READ_FETCHED;
context->flags2 &= ~FLAG2_READ_PENDING;
}