Last active
December 21, 2024 19:51
-
-
Save frangio/608671a39164eb9372c93012dfd52464 to your computer and use it in GitHub Desktop.
EVML Assembly syntax examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
code main : 0 -> ! { | |
push0 | |
push0 | |
callf other | |
stop | |
} | |
code other : 2 -> 1 { | |
rjumpi end | |
pop | |
push0 | |
end: | |
retf | |
} | |
code another : 0 -> 1 { | |
dataloadn bar | |
... | |
eofcreate foo_init | |
} | |
container foo_init { | |
container foo { | |
aux_data baz : 32 | |
... | |
} | |
code init { | |
... | |
returncontract foo | |
} | |
} | |
data bar = hex"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment