~starkingdoms/starkingdoms

ref: 0216bf5e52ce141f5a1f5eaaf3e699eb07fed0b1 starkingdoms/kabel/opcodes.txt -rw-r--r-- 268 bytes
0216bf5e — ghostly_zsh fix issue with not ppopping to clear stack with an expression statement 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
CONSTANT VAL ; 0x00
ADD ; 0x01
SUB ; 0x02
MUL ; 0x03
DIV ; 0x04
MOD ; 0x05
BITAND ; 0x06
BITXOR ; 0x07
BITOR ; 0x08
EQ ; 0x09
NE ; 0x0A
GR ; 0x0B
GE ; 0x0C
LS ; 0x0D
LE ; 0x0E
OR ; 0x0F
AND ; 0x10

NOT ; 0x11
NEG ; 0x12

JMP LOC ; 0x13
IF_NE ELSE ; 0x14

PRINT ; 0xFF