continue previous commit

This commit is contained in:
goyuken 2014-02-02 16:30:04 +00:00
parent 99af51b883
commit c3df573698
1 changed files with 13 additions and 0 deletions

View File

@ -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;
}
}
}