This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/tests/06-Retrolix_to_x86-64/06-call-function.retrolix
Adrien Guatto 26259aa774 Publication du jalon 6
Le jalon 5 a été sauté.
2023-12-13 19:42:00 +01:00

15 lines
No EOL
225 B
Text

external printf
def print_one_int ()
rax: %rsi <- copy %rdi;
l10: %rdi <- copy "%d\n";
l11: %rax <- copy 0;
l12: printf();
l13: ret;
end
globals (x)
l01: %rdi <- copy 37;
l02: print_one_int();
l03: exit;
end