소스 검색

Update comments on Operation_Input

ApisNecros 1 년 전
부모
커밋
ff3a41fc54
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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}
      */