From a9389e4e697a9a5c9c9f7da50f416f9c3874e614 Mon Sep 17 00:00:00 2001 From: Tobias Lindahl Date: Wed, 8 May 2019 15:35:59 +0200 Subject: [PATCH] Add the CALL_VALUE instruction --- src/aeb_fate_generate_ops.erl | 2 +- test/asm_code/all_instructions.fate | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index 7047290..157d98e 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -143,7 +143,7 @@ ops_defs() -> , { 'SETELEMENT', 16#7f, 4, false,3, [a,a,a,a], setelement, "Arg0 := a new tuple similar to Arg2, but with element number Arg1 replaced by Arg3."} , { 'CALL_GR', 16#80, 4, true,8, [a,is,a,a], call_gr, "Remote call with gas cap in Arg3. Otherwise as CALL_R."} , { 'CALL_GTR', 16#81, 4, true,8, [a,is,a,a], call_gtr, "Remote tail call with gas cap in Arg3. Otherwise as CALL_TR."} - + , { 'CALL_VALUE', 16#82, 1, false,3, [a], call_value, "The value sent in the current remote call."} , { 'DUMMY7ARG', 16#f9, 7, false,3, [a,a,a,a,a,a,a], dummyarg, "Temporary dummy instruction to test 7 args."} , { 'DUMMY8ARG', 16#fa, 8, false,3, [a,a,a,a,a,a,a,a],dummyarg, "Temporary dummy instruction to test 8 args."} diff --git a/test/asm_code/all_instructions.fate b/test/asm_code/all_instructions.fate index 6adc360..81d57ce 100644 --- a/test/asm_code/all_instructions.fate +++ b/test/asm_code/all_instructions.fate @@ -162,6 +162,8 @@ FUNCTION foo () : {tuple, []} BLOCKHASH a arg110 + CALL_VALUE a + BENEFICIARY var163 TIMESTAMP a