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

20 lines
529 B
C#

namespace MyNes.Core
{
[BoardInfo("Unknown", 152)]
internal class Mapper152 : Board
{
internal override void HardReset()
{
base.HardReset();
Switch16KPRG(PRG_ROM_16KB_Mask, PRGArea.AreaC000);
}
internal override void WritePRG(ref ushort address, ref byte data)
{
Switch08KCHR(data & 0xF);
Switch16KPRG((data >> 4) & 7, PRGArea.Area8000);
Switch01KNMTFromMirroring(((data & 0x80) == 128) ? Mirroring.OneScB : Mirroring.OneScA);
}
}
}