public Machine2600(DeserializationContext input, ReadOnlyMemory <uint> palette) : base(input, palette) { input.CheckVersion(1); Mem = input.ReadAddressSpace(this, 13, 6); // 2600: 13bit, 64byte pages CPU = input.ReadM6502(this, 1); TIA = input.ReadTIA(this); for (ushort i = 0; i < 0x1000; i += 0x100) { Mem.Map(i, 0x0080, TIA); } PIA = input.ReadPIA(this); for (ushort i = 0x0080; i < 0x1000; i += 0x100) { Mem.Map(i, 0x0080, PIA); } Cart = input.ReadCart(this); Mem.Map(0x1000, 0x1000, Cart); }