Browse Source

Set isOutput to true for OUTPUT opcode

ApisNecros 1 year ago
parent
commit
0f253c3f55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IntComp/Computer.js

+ 1 - 1
IntComp/Computer.js

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