changeset 2334:57ebbc1ade30

Fix regression in mega-color image demos
author Michael Pavone <pavone@retrodev.com>
date Sat, 26 Aug 2023 19:59:44 -0700
parents 866577a220e6
children c05b7c5e6f11
files vdp.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Wed Aug 23 23:53:25 2023 -0700
+++ b/vdp.c	Sat Aug 26 19:59:44 2023 -0700
@@ -592,11 +592,11 @@
 //6 would trigger regsiter write 0110
 //7 is a mystery //0111
 #define CRAM_READ 8  //1000
-//9 is also a mystery //1001
+//writes go nowhere, acts 8-bit wide like VRAM //1001
 //A would trigger register write 1010
 //B is a mystery 1011
 #define VRAM_READ8 0xC //1100
-//D is a mystery 1101
+//writes go nowhere, acts 16-bit wide like VSRAM/CRAM 1101
 //E would trigger register write 1110
 //F is a mystery 1111
 
@@ -1122,7 +1122,7 @@
 
 			break;
 		default:
-			if (!(context->cd & 4) && !start->partial && (context->regs[REG_MODE_2] & (BIT_128K_VRAM|BIT_MODE_5)) != (BIT_128K_VRAM|BIT_MODE_5)) {
+			if (!(context->cd & 6) && !start->partial && (context->regs[REG_MODE_2] & (BIT_128K_VRAM|BIT_MODE_5)) != (BIT_128K_VRAM|BIT_MODE_5)) {
 				start->partial = 1;
 				return;
 			}