Skip to content

commands

timofey edited this page Mar 12, 2022 · 2 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

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

Clone this wiki locally