~starkingdoms/starkingdoms

ref: 5d800d4baddb81e5d0e6f6a3eacc34377ee819a0 starkingdoms/kabel/opcodes.txt -rw-r--r-- 602 bytes
5d800d4b — ghostly_zsh break and continue added, but they dont clean up the stack 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
30
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
JMP_UP LOC      ; 0x16
JNE ELSE        ; 0x17

POP COUNT       ; 0xFD
PRINT           ; 0xFE