2024-08-04 23:37:02 +08:00
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Mapper093 SunSoft (Fantasy Zone) //
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
using static VirtualNes.MMU;
|
2024-08-16 10:20:00 +08:00
|
|
|
|
|
2024-08-04 23:37:02 +08:00
|
|
|
|
|
|
|
|
|
namespace VirtualNes.Core
|
|
|
|
|
{
|
2024-08-16 10:20:00 +08:00
|
|
|
|
public class Mapper093 : Mapper
|
|
|
|
|
{
|
|
|
|
|
public Mapper093(NES parent) : base(parent)
|
|
|
|
|
{
|
|
|
|
|
}
|
2024-08-04 23:37:02 +08:00
|
|
|
|
|
2024-08-16 10:20:00 +08:00
|
|
|
|
public override void Reset()
|
|
|
|
|
{
|
|
|
|
|
SetPROM_32K_Bank(0, 1, PROM_8K_SIZE - 2, PROM_8K_SIZE - 1);
|
|
|
|
|
if (VROM_8K_SIZE != 0)
|
|
|
|
|
{
|
|
|
|
|
SetVROM_8K_Bank(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-04 23:37:02 +08:00
|
|
|
|
|
2024-08-16 10:20:00 +08:00
|
|
|
|
//void Mapper093::WriteLow(WORD addr, BYTE data)
|
|
|
|
|
public override void WriteLow(ushort addr, byte data)
|
|
|
|
|
{
|
|
|
|
|
if (addr == 0x6000)
|
|
|
|
|
{
|
|
|
|
|
SetPROM_16K_Bank(4, data);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-04 23:37:02 +08:00
|
|
|
|
|
2024-08-16 10:20:00 +08:00
|
|
|
|
}
|
2024-08-04 23:37:02 +08:00
|
|
|
|
}
|