|
@@ -304,7 +304,8 @@ module.exports = class Computer {
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
Operation_Input(rawOpcode) {
|
|
|
- const outputParamMode = ComputerParameterMode.ParseParameterMode(rawOpcode, 1);
|
|
|
+ // Disallow Position Parameter Mode
|
|
|
+ const outputParamMode = ComputerParameterMode.ParseParameterMode(rawOpcode, 1) || 1;
|
|
|
const outputPosition = this.stack.Next().Get(outputParamMode);
|
|
|
|
|
|
/** A variable to store the input in before putting it on the stack */
|