Browse Source

Update comments on Operation_Input

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

+ 5 - 1
IntComp/Computer.js

@@ -230,7 +230,11 @@ module.exports = class Computer {
     /**
      * Execute the Input opcode
      *
-     * Prompts the user to input a value from the command line
+     * Checks to see if the computer's `runtimeInput` is set. If so, uses that
+     * value as the input, and stores that at a specified address, and then
+     * empties the `runtimeInput` value. If `runtimeInput` is empty, and if
+     * the computer is set to accept input from the console, prompts the
+     * user for input.
      *
      * @returns {void}
      */