Fix with proper mirroring mode
This commit is contained in:
parent
ec582fb35c
commit
f3b996b2ba
|
@ -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)]; }
|
||||
|
|
Loading…
Reference in New Issue