GPGX - mask memory domains because tools depend on this behavior in domains

This commit is contained in:
adelikat 2014-01-04 16:30:26 +00:00
parent 8daccb972d
commit 913760289d
1 changed files with 2 additions and 6 deletions
BizHawk.Emulation.Cores/Consoles/Sega/gpgx

View File

@ -528,15 +528,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
mm.Add(new MemoryDomain(name, size, MemoryDomain.Endian.Unknown,
delegate(int addr)
{
if (addr < 0 || addr >= size)
throw new ArgumentOutOfRangeException();
return p[addr];
return p[addr & (size - 1)];
},
delegate(int addr, byte val)
{
if (addr < 0 || addr >= size)
throw new ArgumentOutOfRangeException();
p[addr] = val;
p[addr & (size - 1)] = val;
}));
}