From 4441f3cbdff2fabd397c2634a03a2d0b0d417931 Mon Sep 17 00:00:00 2001 From: negativeExponent <54053706+negativeExponent@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:32:24 +0800 Subject: [PATCH] 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) --- src/boards/mmc5.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boards/mmc5.cpp b/src/boards/mmc5.cpp index 82095f04..33cd84be 100644 --- a/src/boards/mmc5.cpp +++ b/src/boards/mmc5.cpp @@ -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;