AxibugEmuOnline/AxibugEmuOnline.Client/Assets/VirtualNes.Core/Mapper/Mapper108.cs

27 lines
723 B
C#
Raw Normal View History

2024-08-04 23:37:02 +08:00
//////////////////////////////////////////////////////////////////////////
// Mapper108 //
//////////////////////////////////////////////////////////////////////////
using static VirtualNes.MMU;
namespace VirtualNes.Core
{
2024-08-16 10:20:00 +08:00
public class Mapper108 : Mapper
{
public Mapper108(NES parent) : base(parent)
{
}
2024-08-04 23:37:02 +08:00
2024-08-16 10:20:00 +08:00
public override void Reset()
{
SetPROM_32K_Bank(0xC, 0xD, 0xE, 0xF);
SetPROM_8K_Bank(3, 0);
}
2024-08-04 23:37:02 +08:00
2024-08-16 10:20:00 +08:00
//void Mapper108::Write(WORD addr, BYTE data)
public override void Write(ushort addr, byte data)
{
SetPROM_8K_Bank(3, data);
}
2024-08-04 23:37:02 +08:00
2024-08-16 10:20:00 +08:00
}
2024-08-04 23:37:02 +08:00
}