AxibugEmuOnline/AxibugEmuOnline.Client/Assets/MyNes.Core/Mapper013.cs
2024-07-03 18:22:22 +08:00

22 lines
482 B
C#

namespace MyNes.Core
{
[BoardInfo("CPROM", 13, 1, 16)]
internal class Mapper013 : Board
{
private byte writeData;
internal override void HardReset()
{
base.HardReset();
Toggle08KCHR_RAM(ram: true);
}
internal override void WritePRG(ref ushort address, ref byte data)
{
ReadPRG(ref address, out writeData);
writeData &= data;
Switch04KCHR(writeData & 3, CHRArea.Area1000);
}
}
}