Exemple #1
0
 public CartA32KR(DeserializationContext input) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x8000), 0x8000);
     RAM          = input.ReadExpectedBytes(0x80);
     BankBaseAddr = input.ReadUInt16();
 }
Exemple #2
0
 public CartCBS12K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x3000), 0x3000);
     RAM = input.ReadExpectedBytes(0x100);
     BankBaseAddr = input.ReadUInt16();
 }
Exemple #3
0
 public CartCBS12K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x3000), 0x3000);
     RAM          = input.ReadExpectedBytes(0x100);
     BankBaseAddr = input.ReadUInt16();
 }
Exemple #4
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();
 }
 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();
 }
Exemple #6
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();
 }
Exemple #7
0
 public CartA4K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x1000), 0x1000);
 }
Exemple #8
0
 public Cart7848(DeserializationContext input) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0xc000), 0xc000);
 }
Exemple #9
0
 public CartDC8K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x2000), 0x2000);
 }
Exemple #10
0
 public CartPB8K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x2000), 0x2000);
     SegmentBase = input.ReadUnsignedShorts();
 }
Exemple #11
0
 public CartPB8K(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x2000), 0x2000);
     SegmentBase = input.ReadUnsignedShorts();
 }
Exemple #12
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();
 }
Exemple #13
0
 public Cart7832P(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x8000), 0x8000);
     _pokeySound = input.ReadOptionalPokeySound(m);
 }
Exemple #14
0
 public Cart7832P(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(0x8000), 0x8000);
     _pokeySound = input.ReadOptionalPokeySound(m);
 }
Exemple #15
0
 public CartDPC2(DeserializationContext input, MachineBase m) : base(input)
 {
     input.CheckVersion(1);
     LoadRom(input.ReadExpectedBytes(MinimumSize), MinimumSize);
 }