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/05-write-global.retrolix
Adrien Guatto 26259aa774 Publication du jalon 6
Le jalon 5 a été sauté.
2023-12-13 19:42:00 +01:00

15 lines
461 B
Text

external printf
globals (x)
lx : x <- copy "The universe is big, it's vast and complicated, and ridiculous and sometimes, very rarely, impossible things just happen and we call them miracles.";
l00: %rdi <- copy "%s\n";
l01: %rsi <- copy x;
l02: %rax <- copy 0;
l03: printf();
lx3: x <- copy "Like an assignment that works, for instance!";
l04: %rdi <- copy "%s\n";
l05: %rsi <- copy x;
l06: %rax <- copy 0;
l07: printf();
l08: exit;
end