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

16 lines
No EOL
323 B
Text

external printf
globals (x)
l00: %rbx <- copy 1;
l01: jumpif eq %rbx, 22 -> l17, l11;
l11: %rdi <- copy "%d jump\n";
l12: %rsi <- copy %rbx;
l13: %rax <- copy 0;
l14: printf();
l15: %rbx <- add %rbx, 1;
ll6: jump l01;
l17: %rdi <- copy "street\n";
l18: %rax <- copy 0;
l20: printf();
l21: exit;
end