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

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