Skip to content

Commit 4a2d980

Browse files
authored
Merge pull request #765 from negativeExponent/patch-2
MMC5: Fix initial values for chr banks and nametables
2 parents 940c895 + 4441f3c commit 4a2d980

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)