From 453baebdccf0d4b748679272adff74611e12685e Mon Sep 17 00:00:00 2001 From: zeromus <zeromus@users.noreply.github.com> Date: Sun, 10 May 2020 20:59:40 -0400 Subject: [PATCH] neshawk - fix poking wram (fixes ancillary unrelated issue in #1994) --- .../Consoles/Nintendo/NES/NES.Core.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs index 996d8563f3..68f7b6d823 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs @@ -841,6 +841,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES { WriteReg(addr, value); } + else if (addr < 0x6000) + { + //let's ignore pokes to EXP until someone asks for it. there's really almost no way that could ever be done without the board having a PokeEXP method + } + else if (addr < 0x8000) + { + Board.WriteWram(addr - 0x6000, value); + } else { // apply a cheat to non-writable memory