2013-04-14 20:39:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2012-11-29 20:15:02 +00:00
|
|
|
|
|
2012-12-06 06:25:30 +00:00
|
|
|
|
namespace BizHawk.Emulation.Computers.Commodore64.Cartridge
|
2012-11-29 20:15:02 +00:00
|
|
|
|
{
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
|
|
public class Mapper0011 : Mapper000F
|
|
|
|
|
{
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public Mapper0011(List<int> newAddresses, List<int> newBanks, List<byte[]> newData)
|
2012-11-29 20:15:02 +00:00
|
|
|
|
: base(newAddresses, newBanks, newData)
|
|
|
|
|
{
|
|
|
|
|
// required to pass information to base class
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void PokeDE00(int addr, byte val)
|
|
|
|
|
{
|
|
|
|
|
// do nothing
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public override byte ReadDE00(int addr)
|
2012-11-29 20:15:02 +00:00
|
|
|
|
{
|
2013-08-14 05:05:17 +00:00
|
|
|
|
BankSet(addr);
|
2012-11-29 20:15:02 +00:00
|
|
|
|
return base.ReadDE00(addr);
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-14 05:05:17 +00:00
|
|
|
|
public override void WriteDE00(int addr, byte val)
|
2012-11-29 20:15:02 +00:00
|
|
|
|
{
|
|
|
|
|
// do nothing
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|