From c3df573698c919ba965946b64dff7f2e1a048cb8 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sun, 2 Feb 2014 16:30:04 +0000 Subject: [PATCH] continue previous commit --- .../Consoles/Nintendo/NES/Boards/Namcot175_340.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot175_340.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot175_340.cs index 8e747602c7..a0417507fe 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot175_340.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot175_340.cs @@ -133,5 +133,18 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES { return ROM[addr & 0x1fff | prg[addr >> 13] << 13]; } + + public override void WriteWRAM(int addr, byte value) + { + if (wramenable) + base.WriteWRAM(addr, value); + } + public override byte ReadWRAM(int addr) + { + if (wramenable) + return base.ReadWRAM(addr); + else + return NES.DB; + } } }