示例#1
0
        public virtual void ReadDeviceState(C64Interfaces.IFile stateFile)
        {
            _state.A.Value  = stateFile.ReadByte();
            _state.X.Value  = stateFile.ReadByte();
            _state.Y.Value  = stateFile.ReadByte();
            _state.PC.Value = stateFile.ReadWord();
            _state.S.Value  = stateFile.ReadWord();
            _state.P.Value  = stateFile.ReadByte();

            _opcode = stateFile.ReadByte();
            _result = stateFile.ReadByte();

            _target = TargetFactory.ReadTargetFromStateFile(this, stateFile);

            _irq.ReadDeviceState(stateFile);
            _nmi.ReadDeviceState(stateFile);
        }