Handle most ops.

This commit is contained in:
Erik Stenman
2019-02-18 18:09:00 +01:00
parent 36f910aff4
commit 16644ded72
4 changed files with 307 additions and 93 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ FUNCTION skip(integer, integer) : integer
PUSH 0
EQ a a arg0
JUMPIF a 2
INC
INCA
JUMP 2
RETURN
+6 -6
View File
@@ -13,25 +13,25 @@ FUNCTION jumps() -> integer
JUMP 1
FUNCTION inc(integer) -> integer
INC
INC
INCA
INCA
RETURN
FUNCTION call(integer) -> integer
INC
INCA
CALL inc
INC
INCA
RETURN
FUNCTION tailcall(integer) -> integer
INC
INCA
CALL_T inc
FUNCTION remote_call(integer) : integer
PUSH arg0
CALL_R remote.add_five
INC
INCA
RETURN
FUNCTION remote_tailcall(integer) : integer