Explorar o código

Add parameter mode enums to computer

ApisNecros hai 1 ano
pai
achega
432cb193bd
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
     }
 
     /**