changeset 476:5d7bc113653b

Clear the low 2 bits of CD when a register is written to
author Mike Pavone <pavone@retrodev.com>
date Sun, 15 Sep 2013 23:49:09 -0700
parents 50e0cb475294
children 7fe655d4e2b7
files vdp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Sun Sep 15 23:40:18 2013 -0700
+++ b/vdp.c	Sun Sep 15 23:49:09 2013 -0700
@@ -1489,6 +1489,7 @@
 						context->framebuf = context->oddbuf;
 					}
 				}
+				context->cd &= 0x3C;
 			}
 		} else {
 			context->flags |= FLAG_PENDING;