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

22 lines
482 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("CPROM", 13, 1, 16)]
internal class Mapper013 : Board
{
private byte writeData;
2024-07-03 18:15:28 +08:00
2024-07-03 18:22:22 +08:00
internal override void HardReset()
{
base.HardReset();
Toggle08KCHR_RAM(ram: true);
}
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;
Switch04KCHR(writeData & 3, CHRArea.Area1000);
}
}
2024-07-03 15:40:13 +08:00
}