Fix with proper mirroring mode

This commit is contained in:
alyosha-tas 2016-09-15 18:05:19 -04:00 committed by GitHub
parent ec582fb35c
commit f3b996b2ba
1 changed files with 12 additions and 11 deletions

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
SetMirrorType(EMirrorType.Horizontal);
lastBank = Cart.prg_size / 8 - 1;
return true;
@ -35,6 +35,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override byte ReadPRG(int addr)
{
if (addr < 0x2000) { return ROM[(reg[1] << 13) + (addr & 0x1FFF)]; }
if (addr < 0x4000) { return ROM[(reg[2] << 13) + (addr & 0x1FFF)]; }
if (addr < 0x6000) { return ROM[(reg[3] << 13) + (addr & 0x1FFF)]; }