summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-09-15 23:49:09 -0700
committerMike Pavone <pavone@retrodev.com>2013-09-15 23:49:09 -0700
commit0b85aa8c6991e91f9927f4d77e3f6bf5600dd36c (patch)
tree8d14002129bc794e5cfb3df0aac5d4210fabff4b
parent0d6a2b753c9733f07932c1bd104a4371cc603894 (diff)
Clear the low 2 bits of CD when a register is written to
-rw-r--r--vdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdp.c b/vdp.c
index f1f28fc..efe7dac 100644
--- a/vdp.c
+++ b/vdp.c
@@ -1489,6 +1489,7 @@ int vdp_control_port_write(vdp_context * context, uint16_t value)
context->framebuf = context->oddbuf;
}
}
+ context->cd &= 0x3C;
}
} else {
context->flags |= FLAG_PENDING;