Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte 1- total bytes of command, not including this one
- byte 2- command id
- 00 xx positive const 8
- 01 xx negative const 8
- 02 xxyy positive const 16
- 03 xxyy negative const 16
- 04 xxyyzzww const 32
- 05 xxyy variable read
- 06 ff nn .. CALL FUNCTION ff with nn parameters, listed after
- 07 original value
- 08 __ __ add
- 09 __ __ sub
- 0a __ __ multiply
- 0b __ __ divide
- 0c __ __ modulo
- 0d __ __ bit and
- 0e __ __ bit or
- 0f __ __ bit xor
- 10 CC __ __ ternary
- 11 __ __ min
- 12 __ __ max
- 13 __ negate
- 14 __ *ptr
- 15 __ __ *(ptr+index)
- 16 __ __ shift left
- 17 __ __ shift right
- 18 CC convert condition to 1 if true and 0 if false
- 19 CC convert condition to -1 if true and 0 if false
- 1a xxyy __ array value
- 1b xxyy __ array reference
- 1c __ bit not
- 1d __ __ indirect set
- 1e __ increment
- 1f __ decrement
- 20 __ *(--ptr)
- 21 __ *(++ptr)
- 22 __ *(ptr--)
- 23 __ *(ptr++)
- 24 __ __ A+=B
- 25 __ __ A-=B
- 26 loop index
- 27
- 28
- 29
- 2a
- 2b
- 2c
- 2d
- 2e
- 2f
- 3x x as positive 4-bit number
- 4x x as negative 4-bit number
- 5x function/call argument x (value), for reference, just use 3x
- 6x function/call argument x as reference
- ff end of list?
- 00 nop
- 01 ? iftrue prefix
- 02 ?: ternary prefix
- 03 :? reverse ternary prefix
- 04 reserved
- 05 reserved
- 06 reserved
- 07 reserved
- 08 set [Dst] [Src]
- 0a set? [Cnd] [Dst] [Src]
- 0b set?: [Cnd] [Dst] [Src] [Src]
- 0c set:? [Cnd] [Dst] [Dst] [Src]
- 0c swap [Dst] [Src]
- 0d swap? [Cnd] [Dst] [Src]
- 0e swap?: [Cnd] [Dst] [Src] [Src]
- 0f swap:? [Cnd] [Dst] [Dst] [Src]
- 10 math [Dst] [Src]
- 11 math? [Cnd] [Dst] [Src]
- 12 math?: [Cnd] [Dst] [Src] [Src]
- 13 math:? [Cnd] [Dst] [Dst] [Src]
- 14 rmath [Siz] [Dst] [Equ]
- 15 rmath? [Cnd] [Siz] [Dst] [Equ]
- 16
- 17
- 18 goto [Loc]
- 19 goto? [Cnd] [Loc]
- 1a goto?: [Cnd] [Loc] [Loc]
- 1b call [Loc]
- 1c call? [Cnd] [Loc]
- 1d call?: [Cnd] [Loc] [Loc]
- 1e return
- 1f return? [Cnd]
- 20 fret [Val]
- 21 fret? [Cnd] [Val]
- 22 fret?: [Cnd] [Val] [Val]
- 23 InitLocal Dest/Num ...
- 24 acall [Loc] Num ...
- 25 acall? [Cnd] [Loc] Num ...
- 26 atail [Loc] Num ...
- 27 atail? [Cnd] [Loc] Num ...
- 28 aret
- 29 aret? [Cnd]
- 2a
- 2b
- 2c memset [Dst] [Siz] [Val]
- 2d memset? [Cnd] [Dst] [Siz] [Val]
- 2e memcpy [Dst] [Siz] [Src]
- 2f memcpy? [Cnd] [Dst] [Siz] [Src]
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 3c
- 3d
- 3e
- 3f
- 40 --- used defined stuff follows ---
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 4a
- 4b
- 4c
- 4d
- 4e
- 4f
- ------------------ conditions -------------------
- 00 cmp [value] [operator] [value]
- 01 not [bool]
- 02 and [bool] [bool]
- 03 or [bool] [bool]
- 04 xor [bool] [bool]
- 05 nand [bool] [bool]
- 06 nor [bool] [bool]
- 07 nxor [bool] [bool]
- 08 true
- 09 false
- 0a random
- 0b nonzero [value]
- 0c function [loc] num ...
- 0d memcmp [A] [B] [Size]
- 0e strcmp [A] [B]
- 0f strcasecmp [A] [B]
- 10 == [value] [value]
- 11 != [value] [value]
- 12 > [value] [value]
- 13 >= [value] [value]
- 14 < [value] [value]
- 15 <= [value] [value]
- 16 and3
- 17 and4
- 18 and5
- 19 or3
- 1a or4
- 1b or5
- 1c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement