From b7b8a81627c83a7e0903b66b2e46da325faf7b42 Mon Sep 17 00:00:00 2001 From: goyuken Date: Fri, 21 Dec 2012 16:14:38 +0000 Subject: [PATCH] nes: JALECO_JF_19: change behavior so that "Moero!! Pro Yakyuu '88: Kettei Ban" now runs. strangely, this doesn't affect "Moero!! Pro Soccer", which already ran and still does. i'll try not to think about it too hard. --- .../Consoles/Nintendo/NES/Boards/JALECO_JF_19.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/JALECO_JF_19.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/JALECO_JF_19.cs index 38c3c6b36c..8530577d06 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/JALECO_JF_19.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/JALECO_JF_19.cs @@ -74,7 +74,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo //Console.WriteLine("MAP {0:X4} = {1:X2}", addr, value); value = HandleNormalPRGConflict(addr, value); - + /* int command = value >> 6; switch (command) { @@ -89,6 +89,15 @@ namespace BizHawk.Emulation.Consoles.Nintendo latch = command; break; } + */ + + // the important change here is that the chr and prg bank latches get filled on the rising edge, not falling + if (value.Bit(6) && !latch.Bit(6)) + chr_banks_8k[0] = (byte)(value & 0xF); + if (value.Bit(7) && !latch.Bit(7)) + prg_banks_16k[1] = (byte)(value & 0xF); + latch = value; + SyncMap(); } public override byte ReadPRG(int addr)