AxibugEmuOnline/AxibugEmuOnline.Client/Assets/MyNes.Core/Mapper010.cs
2024-07-03 18:22:22 +08:00

26 lines
561 B
C#

namespace MyNes.Core
{
[BoardInfo("MMC4", 10)]
internal class Mapper010 : MMC2
{
internal override void HardReset()
{
base.HardReset();
Switch16KPRG(0, PRGArea.Area8000);
Switch16KPRG(PRG_ROM_16KB_Mask, PRGArea.AreaC000);
}
internal override void WritePRG(ref ushort address, ref byte data)
{
if ((address & 0xF000) == 40960)
{
Switch16KPRG(data, PRGArea.Area8000);
}
else
{
base.WritePRG(ref address, ref data);
}
}
}
}