From 8b45f93aade7402faf1c141354165f3e2073b416 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:11:13 -0700 Subject: [PATCH] Fix z80 bus not being added for gpgx mem domains --- .../Consoles/Sega/gpgx64/GPGX.IMemoryDomains.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IMemoryDomains.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IMemoryDomains.cs index 5bc9074045..51c5ae5eb9 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IMemoryDomains.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IMemoryDomains.cs @@ -29,8 +29,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx var oneByteWidth = name is "Z80 RAM" or "Main RAM" or "ROM" or "Cart (Volatile) RAM" or "SRAM"; var endian = oneByteWidth - ? MemoryDomain.Endian.Little - : MemoryDomain.Endian.Big; + ? MemoryDomain.Endian.Little + : MemoryDomain.Endian.Big; if (name == "VRAM") { @@ -178,6 +178,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx if (a > 0xFFFF) throw new ArgumentOutOfRangeException(paramName: nameof(addr), a, message: "address out of range"); Core.gpgx_write_z80_bus(a, val); }, 1); + + mm.Add(systemBus); } mm.Add(_elf.GetPagesDomain());