|
@@ -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}
|
|
|
*/
|