AxibugEmuOnline/OtherCore/MyNes.Standard2/MyNes.Core/Mapper164.cs

29 lines
620 B
C#
Raw Normal View History

2024-07-24 15:03:33 +08:00
namespace MyNes.Core
{
[BoardInfo("Unknown", 164)]
internal class Mapper164 : Board
{
internal override void HardReset()
{
base.HardReset();
Switch32KPRG(255, PRGArea.Area8000);
}
internal override void WriteEX(ref ushort address, ref byte data)
{
if (address >= 20480 && (address & 0xF000) == 20480)
{
Switch32KPRG(data, PRGArea.Area8000);
}
}
internal override void WritePRG(ref ushort address, ref byte data)
{
if ((address & 0xF000) == 53248)
{
Switch32KPRG(data, PRGArea.Area8000);
}
}
}
}