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
2023-12-31 15:40:23 +01:00

24 lines
339 B
Text

globals (x, y, z, k)
x <- copy 6;
%rdi <- copy x;
print_int();
%rdi <- copy " ";
print_string();
y <- copy 7;
%rdi <- copy y;
print_int();
%rdi <- copy " ";
print_string();
z <- mul y, x;
%rdi <- copy z;
print_int();
%rdi <- copy " ";
print_string();
k <- sub z, x;
%rdi <- copy k;
print_int();
end