1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/tests/Asm/positive/test003.jva
2022-09-29 17:44:55 +02:00

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;
}