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/08.retrolix
2023-12-31 23:16:39 +01:00

25 lines
415 B
Text

def my_add_eight_int (i7, i8)
%rax <- add %rdi, %rsi;
%rax <- add %rax, %rdx;
%rax <- add %rax, %rcx;
%rax <- add %rax, %r8;
%rax <- add %rax, %r9;
%rax <- add %rax, i7;
%rax <- add %rax, i8;
ret;
end
globals ()
%rdi <- copy 1;
%rsi <- copy 2;
%rdx <- copy 3;
%rcx <- copy 4;
%r8 <- copy 5;
%r9 <- copy 6;
my_add_eight_int(7, 8);
%rdi <- copy %rax;
observe_int();
exit;
end