summaryrefslogtreecommitdiff
path: root/src/vm/enum.js
blob: 5271991d83c009769f7407ffe3cc74591565b429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;