Esempio n. 1
0
 public override void StateSave(System.IO.BinaryWriter writer)
 {
     square1.StateSave(writer);
     square2.StateSave(writer);
     writer.Write(readMode);
     writer.Write(irqEnable);
     writer.Write(irqTrip);
     writer.Write(pcmData);
 }
Esempio n. 2
0
 public void StateSave(BinaryWriter writer)
 {
     writer.Write(currentTime);
     writer.Write(lastUpdateCycle);
     writer.Write(frameIRQ);
     writer.Write(frameCounter);
     writer.Write(mode);
     writer.Write(frameIRQInhibit);
     writer.Write(timeToClock);
     square1.StateSave(writer);
     square2.StateSave(writer);
     triangle.StateSave(writer);
     noise.StateSave(writer);
     dmc.StateSave(writer);
     external.StateSave(writer);
 }