summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}