namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
	internal sealed class m2K : MapperBase
	{
		public m2K(Atari2600 core) : base(core)
		{
		}

		public override void HardReset() { }

		public override byte ReadMemory(ushort addr)
		{
			if (addr < 0x1000)
			{
				return base.ReadMemory(addr);
			}

			return Core.Rom[addr & 0x7FF];
		}

		public override byte PeekMemory(ushort addr) => ReadMemory(addr);
	}
}