Skip to content

Commit 4441f3c

Browse files
MMC5: Fix initial values for chr banks and nametables
At least 1 game expect chr bank and nametables to be initialized at zero (fix Deathloop 256)
1 parent f980ec2 commit 4441f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/boards/mmc5.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -903,14 +903,14 @@ static void GenMMC5Power(void) {
903903

904904
PRGBanks.fill(0xFF);
905905
WRAMPage = 0;
906-
CHRBanksA.fill(0xFF);
907-
CHRBanksB.fill(0xFF);
906+
CHRBanksA.fill(0);
907+
CHRBanksB.fill(0);
908908
WRAMMaskEnable.fill(0xFF);
909909
mmc5ABMode = 0;
910910
IRQScanline = 0;
911911
IRQEnable = 0;
912912
CHRMode = 0;
913-
NTAMirroring = NTFill = ATFill = 0xFF;
913+
NTAMirroring = NTFill = ATFill = 0;
914914
MMC5IRQR = 0;
915915
MMC5LineCounter = 0;
916916
mmc5psize = mmc5vsize = 3;

0 commit comments

Comments
 (0)