Browse Source

Add parameter mode enums to computer

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

+ 5 - 0
IntComp/Computer.js

@@ -13,6 +13,11 @@ module.exports = class Computer {
             MULTIPLY: 2,
             HALT: 99,
         };
+        this.PARAMETER_MODES = {
+            POSITION_MODE: 0,
+            IMMEDIATE_MODE: 1,
+        }
+        this.paramMode = this.PARAMETER_MODES.POSITION_MODE;
     }
 
     /**