summaryrefslogtreecommitdiff
path: root/src/vm/enum.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/enum.js')
-rw-r--r--src/vm/enum.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vm/enum.js b/src/vm/enum.js
new file mode 100644
index 0000000..5271991
--- /dev/null
+++ b/src/vm/enum.js
@@ -0,0 +1,27 @@
+'use strict';
+
+const Op = {
+ DAT: 'DAT',
+ MOV: 'MOV',
+ ADD: 'ADD',
+ SUB: 'SUB',
+ JMP: 'JMP',
+ JMZ: 'JMZ',
+ JMN: 'JMN',
+ CMP: 'CMP',
+ SLT: 'SLT',
+ DJN: 'DJN',
+ SPL: 'SPL',
+};
+
+
+const AddrMode = {
+ Immediate: 'immediate',
+ Indirect: 'indirect',
+ Predecrement: 'predecrement',
+ Direct: 'direct',
+};
+
+
+exports.Op = Op;
+exports.AddrMode = AddrMode;