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/questions/retrolixToX86_64/03.retrolix

18 lines
283 B
Text
Raw Normal View History

2023-12-31 15:32:46 +01:00
globals (res)
2023-12-31 15:55:37 +01:00
local compteur:
compteur <- copy 5;
res <- copy 1;
condition:
jumpif lte compteur, 1 -> fin, boucle;
boucle:
res <- mul res, compteur;
compteur <- sub compteur, 1;
jump condition;
fin:
%rdi <- copy res;
print_int();
2023-12-31 15:32:46 +01:00
end