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/02.retrolix

25 lines
339 B
Text
Raw Normal View History

2023-12-31 15:32:46 +01:00
globals (x, y, z, k)
x <- copy 6;
%rdi <- copy x;
print_int();
2023-12-31 15:40:23 +01:00
%rdi <- copy " ";
2023-12-31 15:32:46 +01:00
print_string();
y <- copy 7;
%rdi <- copy y;
print_int();
2023-12-31 15:40:23 +01:00
%rdi <- copy " ";
2023-12-31 15:32:46 +01:00
print_string();
z <- mul y, x;
%rdi <- copy z;
print_int();
2023-12-31 15:40:23 +01:00
%rdi <- copy " ";
2023-12-31 15:32:46 +01:00
print_string();
k <- sub z, x;
%rdi <- copy k;
print_int();
end