Browse Source

Add comments to parameter modes

ApisNecros 1 year ago
parent
commit
e663a76128
1 changed files with 12 additions and 0 deletions
  1. 12 0
      IntComp/ComputerParameterMode.js

+ 12 - 0
IntComp/ComputerParameterMode.js

@@ -1,4 +1,16 @@
 module.exports = {
+    /**
+     * Position Mode
+     *
+     * When the int computer is in Position mode, the value at the pointer
+     * is interpretted as another address in memory.
+     */
     POSITION_MODE: 0,
+    /**
+     * Immediate Mode
+     *
+     * When the int computer is in Immediate Mode, the value at the pointer
+     * is interpretted as its literal value.
+     */
     IMMEDIATE_MODE: 1,
 };