NES: mapper 225: fix potential memory corruption bug (hard to tell if any games actually exercised it)

This commit is contained in:
goyuken 2014-01-13 15:59:05 +00:00
parent 1a6c86d049
commit d037f67e28
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{ {
if (addr >= 0x1800) if (addr >= 0x1800)
{ {
eRAM[(addr & 0x07)] = (byte)(value & 0x0F); eRAM[(addr & 0x03)] = (byte)(value & 0x0F);
} }
} }
@ -143,7 +143,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{ {
if (addr >= 0x1800) if (addr >= 0x1800)
{ {
return eRAM[(addr & 0x07)]; return eRAM[(addr & 0x03)];
} }
else else
{ {