coolboy 400 in 1: fix some games

This commit is contained in:
goyuken 2015-01-11 23:37:17 +00:00
parent 1c54c52fff
commit a8a0d35a97
1 changed files with 16 additions and 1 deletions

View File

@ -49,6 +49,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
if (!exp[3].Bit(7))
{
exp[addr & 3] = value;
/*
if (exp[3].Bit(7))
{
Console.WriteLine("EXP Write Protect Activated");
}
if (exp[3].Bit(4))
{
Console.WriteLine("Funky Mode Active");
}
*/
}
}
}
@ -89,7 +99,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
int v = base.Get_PRGBank_8K(addr);
int ret = baseaddr << shift | v & mask;
if (exp[3].Bit(0))
if (exp[3].Bit(4))
{
ret |= exp[3] & (0x0e ^ exp[1] & 2);
}
@ -113,5 +123,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
base.SyncState(ser);
ser.Sync("exp", ref exp, false);
}
public override void NESSoftReset()
{
Array.Clear(exp, 0, 4);
}
}
}