mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
20 lines
237 B
Plaintext
20 lines
237 B
Plaintext
-- Indirect 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;
|
|
calloc calculate 2;
|
|
call $ 1;
|
|
ret;
|
|
}
|