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

17 lines
407 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("Color Dreams", 11)]
internal class Mapper011 : Board
{
private byte writeData;
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)
{
ReadPRG(ref address, out writeData);
writeData &= data;
Switch32KPRG(writeData & 3, PRGArea.Area8000);
Switch08KCHR((writeData >> 4) & 0xF);
}
}
2024-07-03 15:40:13 +08:00
}