forked from sin365/AxibugEmuOnline
38 lines
908 B
C#
38 lines
908 B
C#
//////////////////////////////////////////////////////////////////////////
|
|
// Mapper079 Nina-3 //
|
|
//////////////////////////////////////////////////////////////////////////
|
|
using static VirtualNes.MMU;
|
|
|
|
|
|
namespace VirtualNes.Core
|
|
{
|
|
public class Mapper079 : Mapper
|
|
{
|
|
public Mapper079(NES parent) : base(parent)
|
|
{
|
|
}
|
|
|
|
public override void Reset()
|
|
{
|
|
SetPROM_32K_Bank(0);
|
|
|
|
if (VROM_1K_SIZE != 0)
|
|
{
|
|
SetVROM_8K_Bank(0);
|
|
}
|
|
}
|
|
|
|
//void Mapper079::WriteLow(WORD addr, BYTE data)
|
|
public override void WriteLow(ushort addr, byte data)
|
|
{
|
|
if ((addr & 0x0100) != 0)
|
|
{
|
|
SetPROM_32K_Bank((data >> 3) & 0x01);
|
|
SetVROM_8K_Bank(data & 0x07);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|