AxibugEmuOnline/AxibugEmuOnline.Client/Assets/MyNes.Core/Mapper202.cs

22 lines
585 B
C#
Raw Normal View History

2024-07-03 18:15:28 +08:00
namespace MyNes.Core;
[BoardInfo("150-in-1", 202)]
[HassIssues]
internal class Mapper202 : Board
{
internal override string Issues => MNInterfaceLanguage.IssueMapper202;
internal override void WritePRG(ref ushort address, ref byte data)
{
Switch01KNMTFromMirroring(((address & 1) == 1) ? Mirroring.Horz : Mirroring.Vert);
Switch08KCHR((address >> 1) & 7);
if ((address & 0xC) == 12)
{
Switch32KPRG(3, PRGArea.Area8000);
return;
}
Switch16KPRG((address >> 1) & 7, PRGArea.Area8000);
Switch16KPRG((address >> 1) & 7, PRGArea.AreaC000);
}
2024-07-03 15:40:13 +08:00
}