From e88fb7370674df2e2eb7a08eda02b7e2ff66ccc7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 11 Feb 2013 09:09:37 +0000 Subject: [PATCH] nes-initial values for mmc3 registers.. not clear on whether theyre real or not, but folks seem to be depending on them, and fceux does it --- .../Consoles/Nintendo/NES/Boards/MMC3_family/MMC3.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/MMC3_family/MMC3.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/MMC3_family/MMC3.cs index 4082beb5e5..d81a8f334d 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/MMC3_family/MMC3.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/MMC3_family/MMC3.cs @@ -69,6 +69,16 @@ namespace BizHawk.Emulation.Consoles.Nintendo else if (board.Cart.chips.Contains("MMC3C")) MMC3Type = EMMC3Type.MMC3C; else MMC3Type = EMMC3Type.MMC3C; //arbitrary choice. is it the best choice? + //initial values seem necessary + regs[0] = 0; + regs[1] = 2; + regs[2] = 4; + regs[3] = 5; + regs[4] = 6; + regs[5] = 7; + regs[6] = 0; + regs[7] = 1; + Sync(); }