~starkingdoms/starkingdoms

ref: 2ff43643cfabc8378d5e001a9c43a739ef755106 starkingdoms/kabel/opcodes.txt -rw-r--r-- 556 bytes
2ff43643 — ghostly_zsh silly error, opcodes were wrong in opcodes.rs 1 year, 4 months ago
                                                                                
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
28
CONSTANT VAL    ; 0x00
VAR STACKPTR    ; 0x01

ADD             ; 0x02
SUB             ; 0x03
MUL             ; 0x04
DIV             ; 0x05
MOD             ; 0x06
BITAND          ; 0x07
BITXOR          ; 0x08
BITOR           ; 0x09
EQ              ; 0x0A
NE              ; 0x0B
GR              ; 0x0C
GE              ; 0x0D
LS              ; 0x0E
LE              ; 0x0F
OR              ; 0x10
AND             ; 0x11

NOT             ; 0x12
NEG             ; 0x13

JMP LOC         ; 0x14
IF_NE ELSE      ; 0x15

POP             ; 0xFD
PRINT           ; 0xFE