コード例 #1
0
ファイル: Serial.cs プロジェクト: RonFields72/C64Emulator
 public void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _atnLine = stateFile.ReadBool();
     _dataLine.ReadDeviceState(stateFile);
     _clockLine.ReadDeviceState(stateFile);
 }
コード例 #2
0
ファイル: Clock.cs プロジェクト: RonFields72/C64Emulator
 public ClockEntry(C64Interfaces.IFile stateFile, ClockOpFactory factory)
 {
     _op = factory.CreateFromStateFile(stateFile);
     _comboNext = stateFile.ReadBool();
 }
コード例 #3
0
ファイル: Serial.cs プロジェクト: RonFields72/C64Emulator
 public void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _localState = stateFile.ReadBool();
 }
コード例 #4
0
ファイル: CIA.cs プロジェクト: RonFields72/C64Emulator
            public void ReadDeviceState(C64Interfaces.IFile stateFile)
            {
                _controlReg = stateFile.ReadByte();
                _active = stateFile.ReadBool();
                _mode = stateFile.ReadByte();
                _oneTime = stateFile.ReadBool();

                _output = stateFile.ReadBool();
                _pulsing = stateFile.ReadBool();
                _pulsed = stateFile.ReadBool();

                _current = stateFile.ReadWord();
                _latch = stateFile.ReadWord();
            }
コード例 #5
0
ファイル: CIA.cs プロジェクト: RonFields72/C64Emulator
        public void ReadDeviceState(C64Interfaces.IFile stateFile)
        {
            _portA.ReadDeviceState(stateFile);
            _portB.ReadDeviceState(stateFile);

            _pcState = stateFile.ReadBool();
            _todPause = stateFile.ReadBool();
            _todLatch = stateFile.ReadBool();
            _todClkCnt = stateFile.ReadByte();
            stateFile.ReadBytes(_todLimits);

            for (int i = 0; i < _tod.GetLength(0); i++)
            {
                for (int j = 0; j < _tod.GetLength(1); j++)
                    _tod[i, j] = stateFile.ReadByte();
            }

            stateFile.ReadBytes(_interruptRegisters);
            _serialRegister = stateFile.ReadByte();
            _flag = stateFile.ReadBool();
            _cntState = stateFile.ReadBool();
            _cntEdge = stateFile.ReadBool();

            _timerA.ReadDeviceState(stateFile);
            _timerB.ReadDeviceState(stateFile);
        }
コード例 #6
0
ファイル: VIA.cs プロジェクト: RonFields72/C64Emulator
        public void ReadDeviceState(C64Interfaces.IFile stateFile)
        {
            _portA.ReadDeviceState(stateFile);
            _portB.ReadDeviceState(stateFile);

            _latchPortA = stateFile.ReadBool();
            _latchedValueA = stateFile.ReadByte();
            _ca1 = stateFile.ReadBool();
            _ca2 = stateFile.ReadBool();
            _latchPortB = stateFile.ReadBool();
            _latchedValueB = stateFile.ReadByte();
            _cb1 = stateFile.ReadBool();
            _pulseCA2 = stateFile.ReadBool();
            _cb2 = stateFile.ReadBool();
            _pulseCB2 = stateFile.ReadBool();

            _t1Counter = stateFile.ReadWord();
            _t1Latch = stateFile.ReadWord();
            _t1Count = stateFile.ReadBool();
            _t1OutPB = stateFile.ReadBool();
            _t1FreeRun = stateFile.ReadBool();
            _t2Counter = stateFile.ReadWord();
            _t2Latch = stateFile.ReadByte();
            _t2Count = stateFile.ReadBool();
            _t2InPB = stateFile.ReadBool();

            _functionControlRegister = stateFile.ReadByte();
            _auxiliaryControlRegister = stateFile.ReadByte();
            _interruptFlagRegister = stateFile.ReadByte();
            _interruptEnabledRegister = stateFile.ReadByte();
        }
コード例 #7
0
ファイル: CBM1541.cs プロジェクト: RonFields72/C64Emulator
 public override void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _halted = stateFile.ReadBool();
     ReadPhaseFromDeviceState(stateFile, 0);
 }
コード例 #8
0
ファイル: Drive.cs プロジェクト: RonFields72/C64Emulator
 public void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _headTrackPos = stateFile.ReadByte();
     _headSectorPos = stateFile.ReadWord();
     _lastHeadDirection = stateFile.ReadByte();
     _spinning = stateFile.ReadBool();
     _density = stateFile.ReadByte();
     _cycleCount = stateFile.ReadByte();
     _lastData = stateFile.ReadByte();
 }