Browse Source

Set all opcode implementations to false

There's no reason for them to be called outside of the object, so I've
marked them as private through their JSDocs.
ApisNecros 1 year ago
parent
commit
a891caad94
1 changed files with 7 additions and 0 deletions
  1. 7 0
      IntComp/Computer.js

+ 7 - 0
IntComp/Computer.js

@@ -228,6 +228,7 @@ module.exports = class Computer {
      * as-is. When in Position Mode, the operands are used as memory
      * addresses, and the values at those addresses are returned instead.
      *
+     * @private
      * @returns {number[]} The parsed list of operands
      */
     _ParseOperands(...operands) {
@@ -245,6 +246,7 @@ module.exports = class Computer {
      * this call.
      *
      * @param {number} rawOpcode The opcode in memory used to make this call
+     * @private
      * @returns {void}
      */
     Operation_Add(rawOpcode) {
@@ -266,6 +268,7 @@ module.exports = class Computer {
      * position on the stack.
      *
      * @param {number} rawOpcode The opcode in memory used to make this call
+     * @private
      * @returns {void}
      */
     Operation_Multiply(rawOpcode) {
@@ -289,6 +292,7 @@ module.exports = class Computer {
      * the computer is set to accept input from the console, prompts the
      * user for input.
      *
+     * @private
      * @returns {void}
      */
     Operation_Input() {
@@ -341,6 +345,7 @@ module.exports = class Computer {
      * Execute the OUTPUT opcode
      *
      * @param {number} rawOpcode The opcode in memory used to make this call
+     * @private
      * @returns {void}
      */
     Operation_Output(rawOpcode) {
@@ -368,6 +373,7 @@ module.exports = class Computer {
      *
      * @param {number} rawOpcode The opcode in memory used to make this call
      * @param {boolean} testCondition The value the memory value should be compared against
+     * @private
      * @returns {void}
      */
     Operation_JumpIf(rawOpcode, testCondition) {
@@ -390,6 +396,7 @@ module.exports = class Computer {
      *
      * @param {number} rawOpcode The opcode in memory used to make this call
      * @param {number} testCondition The type of equality check to perform as defined in the computer's constructor
+     * @private
      * @returns {void}
      */
     Operation_Equality(rawOpcode, testCondition) {