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

22 lines
461 B
C#
Raw Permalink Normal View History

2024-07-24 15:03:33 +08:00
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);
}
}
}