1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00
juvix/tests/Asm/positive/test003.jva

20 lines
237 B
Plaintext
Raw Normal View History

2022-09-29 18:44:55 +03:00
-- 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;
}