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

32 lines
761 B
C#
Raw Normal View History

2024-08-04 23:37:02 +08:00
/////////////////////////////////
// Mapper094 Capcom 74161/32 //
//////////////////////////////////////////////////////////////////////////
using static VirtualNes.MMU;
2024-08-16 10:20:00 +08:00
2024-08-04 23:37:02 +08:00
namespace VirtualNes.Core
{
2024-08-16 10:20:00 +08:00
public class Mapper094 : Mapper
{
public Mapper094(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(0, 1, PROM_8K_SIZE - 2, PROM_8K_SIZE - 1);
}
2024-08-04 23:37:02 +08:00
2024-08-16 10:20:00 +08:00
//void Mapper094::Write(WORD addr, BYTE data)
public override void Write(ushort addr, byte data)
{
if ((addr & 0xFFF0) == 0xFF00)
{
SetPROM_16K_Bank(4, (data >> 2) & 0x7);
}
}
2024-08-04 23:37:02 +08:00
2024-08-16 10:20:00 +08:00
}
2024-08-04 23:37:02 +08:00
}