Esempio n. 1
0
            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();
            }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _atnLine = stateFile.ReadBool();
     _dataLine.ReadDeviceState(stateFile);
     _clockLine.ReadDeviceState(stateFile);
 }
Esempio n. 5
0
 public void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _localState = stateFile.ReadBool();
 }
Esempio n. 6
0
 public override void ReadDeviceState(C64Interfaces.IFile stateFile)
 {
     _halted = stateFile.ReadBool();
     ReadPhaseFromDeviceState(stateFile, 0);
 }
Esempio n. 7
0
 public ClockEntry(C64Interfaces.IFile stateFile, ClockOpFactory factory)
 {
     _op        = factory.CreateFromStateFile(stateFile);
     _comboNext = stateFile.ReadBool();
 }
Esempio n. 8
0
        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();
        }