NES Core - implement GetFreeze/SetFreeze for RAM memory domain

This commit is contained in:
andres.delikat 2011-03-19 01:56:52 +00:00
parent 759fc88eae
commit fc845c1778
1 changed files with 4 additions and 1 deletions

View File

@ -256,6 +256,9 @@ namespace BizHawk.Emulation.Consoles.Nintendo
SystemBus.GetFreeze = addr => sysbus_freeze[addr];
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);
GetWatch(NESWatch.EDomain.Sysbus, 0xB424).RemoveGameGenie();