AxibugEmuOnline/OtherCore/MyNes.Standard2/MyNes.Core/Mapper011.cs

17 lines
391 B
C#
Raw Permalink Normal View History

2024-07-24 15:03:33 +08:00
namespace MyNes.Core
{
[BoardInfo("Color Dreams", 11)]
internal class Mapper011 : Board
{
private byte writeData;
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);
}
}
}