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:32:46 +01:00

26 lines
381 B
Text

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