40 lines
985 B
C#
40 lines
985 B
C#
using System.Collections.Generic;
|
|
using BizHawk.Common;
|
|
|
|
namespace BizHawk.Emulation.Cores.Computers.Commodore64.Cartridge
|
|
{
|
|
// This mapper comes from Dinamic. It is in fact identical
|
|
// to the System 3 mapper (000F) except that bank switching is
|
|
// done by reads to the DExx region instead of writes.
|
|
// This is why mapper 0011 inherits directly from 000F.
|
|
internal class Mapper0011 : Mapper000F
|
|
{
|
|
public Mapper0011(IList<int> newAddresses, IList<int> newBanks, IList<int[]> newData)
|
|
: base(newAddresses, newBanks, newData)
|
|
{
|
|
// required to pass information to base class
|
|
}
|
|
|
|
protected override void SyncStateInternal(Serializer ser)
|
|
{
|
|
// Nothing to save
|
|
}
|
|
|
|
public override void PokeDE00(int addr, int val)
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
public override int ReadDE00(int addr)
|
|
{
|
|
BankSet(addr);
|
|
return base.ReadDE00(addr);
|
|
}
|
|
|
|
public override void WriteDE00(int addr, int val)
|
|
{
|
|
// do nothing
|
|
}
|
|
}
|
|
}
|