Open tekknolagi opened 7 years ago
Built-in instructions -- each can dereference its arguments if it wants:
halt
move
add
sub
mul
div
shr
shl
nand
xor
br
brz
brnz
malloc
free
Mnemonics:
cmp
not
or
and
push
pop
call
ret
Built-in instructions -- each can dereference its arguments if it wants:
halt
move
add
sub
mul
div
shr
shl
nand
xor
br
(unconditional branch)brz
(branch if zero)brnz
(branch if not zero)malloc
(allocate heap memory)free
(free heap memory)Mnemonics:
cmp
(check if two registers are the same)not
or
and
push
pop
call
ret