Skip to content

Commit

Permalink
MMC5: Fix initial values for chr banks and nametables
Browse files Browse the repository at this point in the history
At least 1 game expect chr bank and nametables to be initialized at zero (fix Deathloop 256)
  • Loading branch information
negativeExponent authored Oct 28, 2024
1 parent f980ec2 commit 4441f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/boards/mmc5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,14 +903,14 @@ static void GenMMC5Power(void) {

PRGBanks.fill(0xFF);
WRAMPage = 0;
CHRBanksA.fill(0xFF);
CHRBanksB.fill(0xFF);
CHRBanksA.fill(0);
CHRBanksB.fill(0);
WRAMMaskEnable.fill(0xFF);
mmc5ABMode = 0;
IRQScanline = 0;
IRQEnable = 0;
CHRMode = 0;
NTAMirroring = NTFill = ATFill = 0xFF;
NTAMirroring = NTFill = ATFill = 0;
MMC5IRQR = 0;
MMC5LineCounter = 0;
mmc5psize = mmc5vsize = 3;
Expand Down

0 comments on commit 4441f3c

Please sign in to comment.