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

23 lines
660 B
C#
Raw Permalink Normal View History

2024-07-03 18:22:22 +08:00
namespace MyNes.Core
2024-07-03 18:15:28 +08:00
{
2024-07-03 18:22:22 +08:00
[BoardInfo("150-in-1", 202)]
[HassIssues]
internal class Mapper202 : Board
{
internal override string Issues => MNInterfaceLanguage.IssueMapper202;
2024-07-03 18:15:28 +08:00
2024-07-03 18:22:22 +08:00
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
}