AxibugEmuOnline/AxibugEmuOnline.Client.PSVita/Assets/VirtualNes.Core/Mapper/Mapper216.cs
2024-12-08 21:50:52 +08:00

34 lines
788 B
C#

//////////////////////////////////////////////////////////////////////////
// Mapper216 //
//////////////////////////////////////////////////////////////////////////
using static VirtualNes.MMU;
using static VirtualNes.Core.CPU;
using INT = System.Int32;
using BYTE = System.Byte;
using System;
//using Codice.CM.Client.Differences;
namespace VirtualNes.Core
{
public class Mapper216 : Mapper
{
public Mapper216(NES parent) : base(parent)
{
}
public override void Reset()
{
SetVROM_8K_Bank(0);
SetPROM_32K_Bank(0);
}
//void Mapper216::Write(WORD addr, BYTE data)
public override void Write(ushort addr, byte data)
{
SetVROM_8K_Bank((addr & 0x0E) >> 1);
SetPROM_32K_Bank(addr & 1);
}
}
}