Skip to content

The mod commands

timofey edited this page Apr 25, 2022 · 18 revisions

Values meaning

r - register

v - value

m - mark

b - math operation

c - constant

preffix _ used for optional value


Commands

COPY r/v/c arg1 r arg2 - copies from arg1 to arg2

ADDI r/v/c arg1 r/v/c arg2 r arg3 - add arg1 and arg2 then copies it to arg3

SUBI r/v/c arg1 r/v/c arg2 r arg3 - sub arg1 and arg2 then copies it to arg3

MULI r/v/c arg1 r/v/c arg2 r arg3 - mul arg1 by arg2 then copies it to arg3

DIVI r/v/c arg1 r/v/c arg2 r arg3 - divide arg1 by arg2 then copies it to arg3

EXPI r/v/c arg1 r/v/c arg2 r arg3 - exponentiation arg1 and arg2 then copies it to arg3

ANDI r/v/c arg1 r/v/c arg2 r arg3 - arg1 byte and arg2 and copies it to arg3

ORII r/v/c arg1 r/v/c arg2 r arg3 - arg1 byte or arg2 and copies it to arg3

NOTI r/v/c arg1 r arg2 - byte not arg1 to arg2

XORI r/v/c arg1 r/v/c arg2 r arg3 - arg1 byte xor arg2 and copies it to arg3


MARK m arg1 _v arg2 - saves mark arg1 to marks. if arg2 defined then mark adress set to arg2

JUMP m arg1 - jump to mark arg1 in marks

TEST r/v/c arg1 b arg2 r/v/c arg3 m arg4 - if arg1 arg2(=, !=, >, >=, <, <=) arg3 then jump to mark arg4

CONS c arg1 v arg2 - saves constant to constants

NOPE - does nothing

WAIT - waits for user input

SLEP r/v - sleep time in seconds

PUSH r/v - add number to stack

POPI r - pop number from stack to result

Clone this wiki locally