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("Unknown", 164)]
|
|
|
|
internal class Mapper164 : Board
|
|
|
|
{
|
|
|
|
internal override void HardReset()
|
|
|
|
{
|
|
|
|
base.HardReset();
|
|
|
|
Switch32KPRG(255, PRGArea.Area8000);
|
|
|
|
}
|
2024-07-03 18:15:28 +08:00
|
|
|
|
2024-07-03 18:22:22 +08:00
|
|
|
internal override void WriteEX(ref ushort address, ref byte data)
|
|
|
|
{
|
|
|
|
if (address >= 20480 && (address & 0xF000) == 20480)
|
|
|
|
{
|
|
|
|
Switch32KPRG(data, PRGArea.Area8000);
|
|
|
|
}
|
|
|
|
}
|
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)
|
|
|
|
{
|
|
|
|
if ((address & 0xF000) == 53248)
|
|
|
|
{
|
|
|
|
Switch32KPRG(data, PRGArea.Area8000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-03 15:40:13 +08:00
|
|
|
}
|