Add missing basic instructions (#45)

* Add missing basic instructions

* MAP_SIZE
* MAP_TO_LIST
* STR_LENGTH

* Change name of erlang function to not shadow builtin guard
This commit is contained in:
Tobias Lindahl
2019-05-28 11:15:04 +02:00
committed by GitHub
parent e98298cce4
commit 89f5ebc84b
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -158,6 +158,10 @@ ops_defs() ->
, { 'AENS_REVOKE', 16#6d, false, 3, [], aens_revoke, {}, none, "NYI"}
, { 'ECVERIFY', 16#6e, false, 3, [], ecverify, {}, none, "NYI"}
, { 'BALANCE_OTHER', 16#6f, false, 3, [a,a], balance_other, {address}, integer, "Arg0 := The balance of address Arg1."}
%% TODO: Reorder these before documenting the specification
, { 'MAP_SIZE', 16#70, false, 3, [a,a], map_size, {map}, integer, "Arg0 := The size of the map Arg1."}
, { 'MAP_TO_LIST', 16#71, false, 3, [a,a], map_to_list_, {map}, list, "Arg0 := The tuple list representation of the map Arg1."}
, { 'STR_LENGTH', 16#72, false, 3, [a,a], str_length, {string}, integer, "Arg0 := The length of the string Arg1."}
, { 'DEACTIVATE', 16#fa, false, 3, [], deactivate, {}, none, "Mark the current contract for deactivation."}
, { 'ABORT', 16#fb, true, 3, [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."}