From 8ae1807957afd9446884a278262e6cc63b7ec79b Mon Sep 17 00:00:00 2001 From: g0me3 Date: Mon, 28 Dec 2020 22:36:33 +0300 Subject: [PATCH] attpet to fix #282 --- src/boards/vrc2and4.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/boards/vrc2and4.cpp b/src/boards/vrc2and4.cpp index 7b68fbef..97e6e535 100644 --- a/src/boards/vrc2and4.cpp +++ b/src/boards/vrc2and4.cpp @@ -28,7 +28,6 @@ static uint8 prgreg[2], chrreg[8]; static uint16 chrhi[8]; static uint8 regcmd, irqcmd, mirr, big_bank; static uint16 acount = 0; -static uint16 weirdo = 0; static uint8 *WRAM = NULL; static uint32 WRAMSIZE; @@ -38,6 +37,7 @@ static SFORMAT StateRegs[] = { prgreg, 2, "PREG" }, { chrreg, 8, "CREG" }, { chrhi, 16, "CRGH" }, + { &acount, 2, "ACNT" }, { ®cmd, 1, "CMDR" }, { &irqcmd, 1, "CMDI" }, { &mirr, 1, "MIRR" }, @@ -62,15 +62,8 @@ static void Sync(void) { setchr8(0); else{ uint8 i; - //if(!weirdo) - for (i = 0; i < 8; i++) - setchr1(i << 10, (chrhi[i] | chrreg[i]) >> is22); - //else { - // setchr1(0x0000, 0xFC); - // setchr1(0x0400, 0xFD); - // setchr1(0x0800, 0xFF); - // weirdo--; - //} + for (i = 0; i < 8; i++) + setchr1(i << 10, (chrhi[i] | chrreg[i]) >> is22); } switch (mirr & 0x3) { case 0: setmirror(MI_V); break;