changeset 2108:68d61ba1b762

Fix handling of byte writes to gate array regs from main CPU
author Michael Pavone <pavone@retrodev.com>
date Sat, 12 Feb 2022 15:21:05 -0800
parents f80c6111e1ae
children 5d575c42fff5
files segacd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/segacd.c	Sat Feb 12 15:20:43 2022 -0800
+++ b/segacd.c	Sat Feb 12 15:21:05 2022 -0800
@@ -1155,7 +1155,7 @@
 	segacd_context *cd = gen->expansion;
 	uint32_t reg = (address & 0x1FF) >> 1;
 	uint16_t value16;
-	switch (reg >> 1)
+	switch (reg)
 	{
 	case GA_SUB_CPU_CTRL:
 		if (address & 1) {