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.

This commit is contained in:
goyuken 2012-12-21 16:14:38 +00:00
parent f1401a16e1
commit b7b8a81627
1 changed files with 10 additions and 1 deletions

View File

@ -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)