2013-11-14 13:15:41 +00:00
|
|
|
|
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
2012-10-31 21:15:44 +00:00
|
|
|
|
{
|
|
|
|
|
// one of the VS unisystem mappers
|
|
|
|
|
// a lot of dumps are labelled incorrectly
|
2013-08-25 01:08:17 +00:00
|
|
|
|
public sealed class Mapper099 : NES.NESBoardBase
|
2012-10-31 21:15:44 +00:00
|
|
|
|
{
|
|
|
|
|
int chr;
|
|
|
|
|
public override bool Configure(NES.EDetectionOrigin origin)
|
|
|
|
|
{
|
|
|
|
|
switch (Cart.board_type)
|
|
|
|
|
{
|
|
|
|
|
case "MAPPER099":
|
|
|
|
|
AssertPrg(32); AssertChr(16); Cart.vram_size = 0; Cart.wram_size = 0;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Signal4016(int val)
|
|
|
|
|
{
|
|
|
|
|
chr = val & 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override byte ReadPPU(int addr)
|
|
|
|
|
{
|
|
|
|
|
if (addr < 0x2000)
|
|
|
|
|
return VROM[addr | chr << 13];
|
|
|
|
|
else
|
|
|
|
|
return base.ReadPPU(addr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|