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

30 lines
757 B
C#
Raw Normal View History

2024-08-05 23:16:39 +08:00
//////////////////////////////////////////////////////////////////////////
// Mapper008 FFE F3xxx //
//////////////////////////////////////////////////////////////////////////
using static VirtualNes.MMU;
2024-08-16 10:20:00 +08:00
2024-08-05 23:16:39 +08:00
namespace VirtualNes.Core
{
2024-08-16 10:20:00 +08:00
public class Mapper008 : Mapper
{
2024-08-05 23:16:39 +08:00
2024-08-16 10:20:00 +08:00
public Mapper008(NES parent) : base(parent) { }
2024-08-05 23:16:39 +08:00
2024-08-16 10:20:00 +08:00
public override void Reset()
{
SetPROM_32K_Bank(0, 1, 2, 3);
SetVROM_8K_Bank(0);
}
2024-08-05 23:16:39 +08:00
2024-08-16 10:20:00 +08:00
//void Mapper008::Write(WORD addr, BYTE data)
public override void Write(ushort addr, byte data)
{
SetPROM_16K_Bank(4, (data & 0xF8) >> 3);
SetVROM_8K_Bank(data & 0x07);
}
2024-08-05 23:16:39 +08:00
2024-08-16 10:20:00 +08:00
}
2024-08-05 23:16:39 +08:00
}