Add value to remote calls and the new ops CALL_GR and CALL_GTR

This commit is contained in:
Tobias Lindahl
2019-05-07 18:26:04 +02:00
parent 08a09b065b
commit 2d3cede235
3 changed files with 32 additions and 10 deletions
+6 -2
View File
@@ -10,11 +10,15 @@ FUNCTION foo () : {tuple, []}
CALL "foo"
CALL_R arg125 foo
CALL_R arg125 foo 0
CALL_T "foo"
CALL_TR arg245 foo
CALL_TR arg245 foo 4711
CALL_GTR arg245 foo 0 100
CALL_GR arg245 foo 0 4711
JUMP 5514251025295783441695716053282666408426
+2 -2
View File
@@ -30,13 +30,13 @@ FUNCTION tailcall(integer) -> integer
FUNCTION remote_call(integer) : integer
PUSH arg0
CALL_R remote.add_five
CALL_R remote.add_five 0
INCA
RETURN
FUNCTION remote_tailcall(integer) : integer
PUSH arg0
CALL_TR remote add_five
CALL_TR remote add_five 0
;; Test the code from the shell
;; _build/default/rel/aessembler/bin/aessembler console