changeset 2473:cf3e8a19aa25

Fix Ax Battler: A Legend of Golden Axe
author Michael Pavone <pavone@retrodev.com>
date Sun, 25 Feb 2024 23:59:37 -0800
parents f171a12fc98c
children b9bec5771993
files vdp.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Sun Feb 25 23:32:19 2024 -0800
+++ b/vdp.c	Sun Feb 25 23:59:37 2024 -0800
@@ -4883,7 +4883,11 @@
 	if (context->regs[REG_MODE_2] & BIT_MODE_5) {
 		cur->cd = context->cd;
 	} else {
-		cur->cd = (context->cd & 2) | 1;
+		if ((context->cd & 3) == CRAM_WRITE) {
+			cur->cd = CRAM_WRITE;
+		} else {
+			cur->cd = VRAM_WRITE;
+		}
 	}
 	cur->partial = 3;
 	if (context->fifo_read < 0) {