mirror of
https://github.com/anoma/juvix.git
synced 2025-01-05 22:46:08 +03:00
19 lines
219 B
Plaintext
19 lines
219 B
Plaintext
|
-- Direct call
|
||
|
|
||
|
function calculate(integer, integer, integer) : integer {
|
||
|
push arg[0];
|
||
|
push arg[1];
|
||
|
push arg[2];
|
||
|
mul;
|
||
|
add;
|
||
|
ret;
|
||
|
}
|
||
|
|
||
|
function main () {
|
||
|
push 2;
|
||
|
push 3;
|
||
|
push 5;
|
||
|
call calculate;
|
||
|
ret;
|
||
|
}
|