private void Input() { var storeInputIn = Program[_index + 1]; Program[storeInputIn] = InputValues.Dequeue(); _index += 2; }
private void Input(Operation operation, int instructionAddress) { if (InputValues.Count > 0) { SetParameter(operation.FirstParameterMode, instructionAddress + 1, InputValues.Dequeue()); IncrementInstructionPointer(2); } else { State = MachineState.Paused; } }