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

18 lines
599 B
C#
Raw 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("Unknown", 229)]
[HassIssues]
internal class Mapper229 : Board
{
internal override string Issues => MNInterfaceLanguage.IssueMapper229;
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 & 0x20) == 32) ? Mirroring.Horz : Mirroring.Vert);
Switch16KPRG(((address & 0x1E) == 30) ? (address & 0x1F) : 0, PRGArea.Area8000);
Switch16KPRG(((address & 0x1E) != 30) ? 1 : (address & 0x1F), PRGArea.AreaC000);
Switch08KCHR(address);
}
}
2024-07-03 15:40:13 +08:00
}