~starkingdoms/starkingdoms

ref: efcd9f2c6bbfd7314ac0191b040fecb9ae93ee0a starkingdoms/kabel/opcodes.txt -rw-r--r-- 579 bytes
efcd9f2c — ghostly_zsh get through variables test 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
29
CONSTANT VAL    ; 0x00
VAR STACKPTR    ; 0x01
ASSIGN PTR      ; 0x02

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

NOT             ; 0x13
NEG             ; 0x14

JMP LOC         ; 0x15
IF_NE ELSE      ; 0x16

POP             ; 0xFD
PRINT           ; 0xFE