24 lines
339 B
Text
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
|