Пример #1
0
 public CartTV8K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x1000), 0x1000);
     BankBaseAddr = input.ReadUInt16();
     LastBankBaseAddr = input.ReadUInt16();
 }
Пример #2
0
 public CartTV8K(DeserializationContext input) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x1000), 0x1000);
     BankBaseAddr     = input.ReadUInt16();
     LastBankBaseAddr = input.ReadUInt16();
 }
Пример #3
0
 public CartMN16K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x4000), 0x4000);
     RAM             = input.ReadExpectedBytes(0x800);
     BankBaseAddr    = input.ReadUInt16();
     BankBaseRAMAddr = input.ReadUInt16();
     RAMBankOn       = input.ReadBoolean();
 }
Пример #4
0
 public CartA8KR(DeserializationContext input) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x2000), 0x2000);
     RAM          = input.ReadExpectedBytes(0x80);
     BankBaseAddr = input.ReadUInt16();
 }
Пример #5
0
 public CartCBS12K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x3000), 0x3000);
     RAM          = input.ReadExpectedBytes(0x100);
     BankBaseAddr = input.ReadUInt16();
 }
Пример #6
0
 public CartDPC(DeserializationContext input) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x28FF), 0x2800);
     BankBaseAddr     = input.ReadUInt16();
     Tops             = input.ReadExpectedBytes(8);
     Bots             = input.ReadExpectedBytes(8);
     Counters         = input.ReadUnsignedShorts(8);
     Flags            = input.ReadExpectedBytes(8);
     MusicMode        = input.ReadBooleans(3);
     LastSystemClock  = input.ReadUInt64();
     FractionalClocks = input.ReadDouble();
     _ShiftRegister   = input.ReadByte();
 }
Пример #7
0
 public CartDPC(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x2800), 0x2800);
     BankBaseAddr = input.ReadUInt16();
     Tops = input.ReadExpectedBytes(8);
     Bots = input.ReadExpectedBytes(8);
     Counters = input.ReadUnsignedShorts(8);
     Flags = input.ReadExpectedBytes(8);
     MusicMode = input.ReadBooleans(3);
     LastSystemClock = input.ReadUInt64();
     FractionalClocks = input.ReadDouble();
     _ShiftRegister = input.ReadByte();
 }
Пример #8
0
 public CartMN16K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x4000), 0x4000);
     RAM = input.ReadExpectedBytes(0x800);
     BankBaseAddr = input.ReadUInt16();
     BankBaseRAMAddr = input.ReadUInt16();
     RAMBankOn = input.ReadBoolean();
 }