BizHawk/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/m2K.cs

19 lines
372 B
C#

namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
partial class Atari2600
{
class m2K : MapperBase
{
public override byte ReadMemory(ushort addr)
{
if (addr < 0x1000) return base.ReadMemory(addr);
return core.rom[addr & 0x7FF];
}
public override byte PeekMemory(ushort addr)
{
return ReadMemory(addr);
}
}
}
}