private WriteT3InstructionPart CreateWriteAddressInstructionPart(MachineCycleNames machineCycle) { _writePart = new WriteT3InstructionPart(Cpu, machineCycle, GetAddress()) { Data = new OpcodeByte(GetValueToWriteBack(GetValue())) }; return(_writePart); }
private WriteT3InstructionPart CreateWriteAddressInstructionPart(MachineCycleNames machineCycle) { _writePart = new WriteT3InstructionPart(Cpu, machineCycle, GetAddress()) { Data = new OpcodeByte(DoShiftRotate(_readPart.Data.Value)) }; return(_writePart); }
protected override CpuState GetInstructionPart(MachineCycleNames machineCycle) { switch (machineCycle) { case MachineCycleNames.M2: _instructionM2 = new ReadT3InstructionPart(Cpu, machineCycle, GetAddress()); return(_instructionM2); case MachineCycleNames.M3: _instructionM3 = new WriteT3InstructionPart(Cpu, machineCycle, GetAddress()); _instructionM3.Data = IncDecValue(_instructionM2.Data); return(_instructionM3); default: throw Errors.InvalidMachineCycle(machineCycle); } }
private WriteT3InstructionPart CreateWriteAddressInstructionPart(MachineCycleNames machineCycle) { _instructionPart = new WriteT3InstructionPart(Die, machineCycle, GetAddress()); return(_instructionPart); }