示例#1
0
 public override void StateLoad(System.IO.BinaryReader reader)
 {
     square1.StateLoad(reader);
     square2.StateLoad(reader);
     readMode  = reader.ReadBoolean();
     irqEnable = reader.ReadBoolean();
     irqTrip   = reader.ReadBoolean();
     pcmData   = reader.ReadByte();
 }
示例#2
0
 public void StateLoad(BinaryReader reader)
 {
     currentTime     = reader.ReadInt32();
     lastUpdateCycle = reader.ReadInt32();
     frameIRQ        = reader.ReadBoolean();
     frameCounter    = reader.ReadInt32();
     mode            = reader.ReadBoolean();
     frameIRQInhibit = reader.ReadBoolean();
     timeToClock     = reader.ReadInt32();
     square1.StateLoad(reader);
     square2.StateLoad(reader);
     triangle.StateLoad(reader);
     noise.StateLoad(reader);
     dmc.StateLoad(reader);
     external.StateLoad(reader);
 }