-
Notifications
You must be signed in to change notification settings - Fork 11
Virtual Machine
Uri edited this page Dec 24, 2021
·
1 revision
R[]
is virtual machine registers. First function argument should be put into R[4]
, second into R[5]
, etc.
IP
is a virtual machine instruction pointer.
All arguments of instructions has byte size (8 bits).
Jump if Arity Fail.
If current arguments count is not equal to a
then jump to IP + (hi<<8 + lo)
.
Jump if Arity Fail eXtended.
If current arguments count is less than a
then jump to IP + (hi<<8 + lo)
.
Jump to function R[r]
and set arguments count to acc
.
Copy R[src]
into R[dst]
.
Copy R[src1]
into R[dst1]
, then copy R[src2]
into R[dst2]
.
Copy (ref R[r] R[i])
into R[ret]
.