From f0c0b076e505839e6542ca672edd05773e258971 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 27 Oct 2016 17:43:26 -0500 Subject: [PATCH] AxROM - support junko that has 16k prg by mirroring the block into both the 8x0000 and 0xC0000 regions. I don't know if this is correct but it matches both fceux and nestopia behavior --- .../Consoles/Nintendo/NES/Boards/AxROM.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/AxROM.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/AxROM.cs index 020baca501..28dd117a49 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/AxROM.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/AxROM.cs @@ -65,6 +65,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES public override byte ReadPRG(int addr) { + if (Cart.prg_size == 16) + { + return ROM[(addr & 0x3FFF) | prg << 15]; + } + return ROM[addr | prg << 15]; }