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

38 lines
891 B
C#

//////////////////////////////////////////////
// Mapper180 Nichibutsu //
//////////////////////////////////////////////////////////////////////////
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 Mapper180 : Mapper
{
public Mapper180(NES parent) : base(parent)
{
}
public override void Reset()
{
SetPROM_32K_Bank(0);
if (VROM_1K_SIZE != 0)
{
SetVROM_8K_Bank(0);
}
}
//void Mapper180::Write(WORD addr, BYTE data)
public override void Write(ushort addr, byte data)
{
SetPROM_16K_Bank(6, data & 0x07);
}
}
}