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(); }
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); }