Add value to remote calls and the new ops CALL_GR and CALL_GTR
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user