Make GPGX Z80 Ram memory domain little endian, fixes #1256
This commit is contained in:
parent
786a505366
commit
b3a9512afb
|
@ -24,6 +24,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
if (area == IntPtr.Zero || pname == IntPtr.Zero || size == 0)
|
if (area == IntPtr.Zero || pname == IntPtr.Zero || size == 0)
|
||||||
continue;
|
continue;
|
||||||
string name = Marshal.PtrToStringAnsi(pname);
|
string name = Marshal.PtrToStringAnsi(pname);
|
||||||
|
|
||||||
|
var endian = name == "Z80 RAM"
|
||||||
|
? MemoryDomain.Endian.Little
|
||||||
|
: MemoryDomain.Endian.Big;
|
||||||
|
|
||||||
if (name == "VRAM")
|
if (name == "VRAM")
|
||||||
{
|
{
|
||||||
// vram pokes need to go through hook which invalidates cached tiles
|
// vram pokes need to go through hook which invalidates cached tiles
|
||||||
|
@ -47,7 +52,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO: are the Z80 domains really Swap16 in the core? Check this
|
// TODO: are the Z80 domains really Swap16 in the core? Check this
|
||||||
mm.Add(new MemoryDomainIntPtrSwap16Monitor(name, MemoryDomain.Endian.Big, area, size, name != "MD CART" && name != "CD BOOT ROM", _elf));
|
mm.Add(new MemoryDomainIntPtrSwap16Monitor(name, endian, area, size, name != "MD CART" && name != "CD BOOT ROM", _elf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var m68Bus = new MemoryDomainDelegate("M68K BUS", 0x1000000, MemoryDomain.Endian.Big,
|
var m68Bus = new MemoryDomainDelegate("M68K BUS", 0x1000000, MemoryDomain.Endian.Big,
|
||||||
|
|
Loading…
Reference in New Issue