From fc845c177837510f1cb26c66d5912bc726cd4082 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sat, 19 Mar 2011 01:56:52 +0000 Subject: [PATCH] NES Core - implement GetFreeze/SetFreeze for RAM memory domain --- BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs index 5ddf1012dd..e5717437e0 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs @@ -254,7 +254,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo addr => CIRAM[addr & 0x07FF], (addr, value) => CIRAM[addr & 0x07FF] = value); SystemBus.GetFreeze = addr => sysbus_freeze[addr]; - SystemBus.SetFreeze = (addr,value) => sysbus_freeze[addr] = value; + SystemBus.SetFreeze = (addr, value) => sysbus_freeze[addr] = value; + + RAM.GetFreeze = addr => sysbus_freeze[addr & 0x07FF]; + RAM.SetFreeze = (addr, value) => sysbus_freeze[addr & 0x07FF] = value; //demo a game genie code GetWatch(NESWatch.EDomain.Sysbus, 0xB424).SetGameGenie(-1, 0x10);