Beispiel #1
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)MOS6502_OpFactory.Ops.DecodeAddressing);
 }
Beispiel #2
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)MOS6502_OpFactory.Ops.Reset);
     stateFile.Write(_readBuffer);
 }
Beispiel #3
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)MOS6502_OpFactory.Ops.WriteResult);
 }
Beispiel #4
0
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_localState);
 }
Beispiel #5
0
 public override void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_halted);
     WritePhaseToDeviceState(stateFile, 0);
 }
Beispiel #6
0
        public virtual void WriteToStateFile(C64Interfaces.IFile stateFile)
        {
            stateFile.Write((byte)0);

            _op.WriteToStateFile(stateFile);
            stateFile.Write(_comboNext);
        }
Beispiel #7
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)0);
 }
Beispiel #8
0
        public virtual void WriteToStateFile(C64Interfaces.IFile stateFile)
        {
            stateFile.Write((byte)TargetFactory.TargetTypes.ReadableTarget);

            stateFile.Write(_address);
            stateFile.Write(_part);
        }
Beispiel #9
0
        public override void WriteToStateFile(C64Interfaces.IFile stateFile)
        {
            stateFile.Write((byte)TargetFactory.TargetTypes.WritableTarget);

            stateFile.Write(_address);
            stateFile.Write(_part);
        }
Beispiel #10
0
            public void WriteDeviceState(C64Interfaces.IFile stateFile)
            {
                stateFile.Write(_controlReg);
                stateFile.Write(_active);
                stateFile.Write(_mode);
                stateFile.Write(_oneTime);

                stateFile.Write(_output);
                stateFile.Write(_pulsing);
                stateFile.Write(_pulsed);

                stateFile.Write(_current);
                stateFile.Write(_latch);
            }
Beispiel #11
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)TargetFactory.TargetTypes.AccumulatorTarget);
 }
Beispiel #12
0
        public void WriteDeviceState(C64Interfaces.IFile stateFile)
        {
            _portA.WriteDeviceState(stateFile);
            _portB.WriteDeviceState(stateFile);

            stateFile.Write(_pcState);
            stateFile.Write(_todPause);
            stateFile.Write(_todLatch);
            stateFile.Write(_todClkCnt);
            stateFile.Write(_todLimits);

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

            stateFile.Write(_interruptRegisters);
            stateFile.Write(_serialRegister);
            stateFile.Write(_flag);
            stateFile.Write(_cntState);
            stateFile.Write(_cntEdge);

            _timerA.WriteDeviceState(stateFile);
            _timerB.WriteDeviceState(stateFile);
        }
Beispiel #13
0
        public void WriteDeviceState(C64Interfaces.IFile stateFile)
        {
            _portA.WriteDeviceState(stateFile);
            _portB.WriteDeviceState(stateFile);

            stateFile.Write(_latchPortA);
            stateFile.Write(_latchedValueA);
            stateFile.Write(_ca1);
            stateFile.Write(_ca2);
            stateFile.Write(_latchPortB);
            stateFile.Write(_latchedValueB);
            stateFile.Write(_cb1);
            stateFile.Write(_pulseCA2);
            stateFile.Write(_cb2);
            stateFile.Write(_pulseCB2);

            stateFile.Write(_t1Counter);
            stateFile.Write(_t1Latch);
            stateFile.Write(_t1Count);
            stateFile.Write(_t1OutPB);
            stateFile.Write(_t1FreeRun);
            stateFile.Write(_t2Counter);
            stateFile.Write(_t2Latch);
            stateFile.Write(_t2Count);
            stateFile.Write(_t2InPB);

            stateFile.Write(_functionControlRegister);
            stateFile.Write(_auxiliaryControlRegister);
            stateFile.Write(_interruptFlagRegister);
            stateFile.Write(_interruptEnabledRegister);
        }
Beispiel #14
0
        public void WriteDeviceState(C64Interfaces.IFile stateFile)
        {
            stateFile.Write((byte)_tracks.Length);

            for (int i = 0; i < _tracks.Length; i++)
            {
                stateFile.Write((ushort)_tracks[i].Length);
                stateFile.Write(_tracks[i]);
            }
        }
Beispiel #15
0
        public void WriteDeviceState(C64Interfaces.IFile stateFile)
        {
            _systemRam.WriteDeviceState(stateFile);
            _systemCpu.WriteDeviceState(stateFile);
            _systemVic.WriteDeviceState(stateFile);
            _systemCias[0].WriteDeviceState(stateFile);
            _systemCias[1].WriteDeviceState(stateFile);
            _serial.WriteDeviceState(stateFile);
            _sDataConn.WriteDeviceState(stateFile);
            _sClockConn.WriteDeviceState(stateFile);

            stateFile.Write(_currentMap);

            _systemClock.WriteDeviceState(stateFile);
        }
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_sourceCount);
 }
Beispiel #17
0
        protected void WritePhaseToDeviceState(C64Interfaces.IFile stateFile, byte phase)
        {
            byte opCount = 0;
            for (ClockEntry op = _currentOps[phase]; op != null; op = op.Next)
                opCount++;

            stateFile.Write(opCount);

            for (ClockEntry op = _currentOps[phase]; op != null; op = op.Next)
                op.WriteToStateFile(stateFile);
        }
Beispiel #18
0
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_memory);
 }
Beispiel #19
0
        public override void WriteToStateFile(C64Interfaces.IFile stateFile)
        {
            stateFile.Write((byte)1);

            _op.WriteToStateFile(stateFile);

            stateFile.Write(_comboNext);
            stateFile.Write(_length);
            stateFile.Write(_cycle);
        }
Beispiel #20
0
 public void WriteToStateFile(C64Interfaces.IFile stateFile)
 {
     stateFile.Write((byte)MOS6502_OpFactory.Ops.ExecuteOpcode);
     stateFile.Write(_pageCrossProlong);
 }
Beispiel #21
0
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_stateOut);
     stateFile.Write(_stateIn);
     stateFile.Write(_direction);
 }
Beispiel #22
0
        public virtual void WriteDeviceState(C64Interfaces.IFile stateFile)
        {
            stateFile.Write(_state.A.Value);
            stateFile.Write(_state.X.Value);
            stateFile.Write(_state.Y.Value);
            stateFile.Write(_state.PC.Value);
            stateFile.Write(_state.S.Value);
            stateFile.Write(_state.P.Value);

            stateFile.Write(_opcode);
            stateFile.Write(_result);

            _target.WriteToStateFile(stateFile);

            _irq.WriteDeviceState(stateFile);
            _nmi.WriteDeviceState(stateFile);
        }
Beispiel #23
0
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_atnLine);
     _dataLine.WriteDeviceState(stateFile);
     _clockLine.WriteDeviceState(stateFile);
 }
Beispiel #24
0
 public void WriteDeviceState(C64Interfaces.IFile stateFile)
 {
     stateFile.Write(_headTrackPos);
     stateFile.Write(_headSectorPos);
     stateFile.Write(_lastHeadDirection);
     stateFile.Write(_spinning);
     stateFile.Write(_density);
     stateFile.Write(_cycleCount);
     stateFile.Write(_lastData);
 }