4
This commit is contained in:
parent
74b3abff1e
commit
14828b3b0e
4 changed files with 8 additions and 9 deletions
|
@ -2,25 +2,23 @@ globals (x, y, z, k)
|
|||
x <- copy 6;
|
||||
%rdi <- copy x;
|
||||
print_int();
|
||||
%rdi <- copy "\n";
|
||||
%rdi <- copy " ";
|
||||
print_string();
|
||||
|
||||
y <- copy 7;
|
||||
%rdi <- copy y;
|
||||
print_int();
|
||||
%rdi <- copy "\n";
|
||||
%rdi <- copy " ";
|
||||
print_string();
|
||||
|
||||
z <- mul y, x;
|
||||
%rdi <- copy z;
|
||||
print_int();
|
||||
%rdi <- copy "\n";
|
||||
%rdi <- copy " ";
|
||||
print_string();
|
||||
|
||||
k <- sub z, x;
|
||||
%rdi <- copy k;
|
||||
print_int();
|
||||
%rdi <- copy "\n";
|
||||
print_string();
|
||||
|
||||
end
|
||||
|
|
|
@ -13,7 +13,4 @@ globals (res)
|
|||
res <- copy %rax;
|
||||
%rdi <- copy res;
|
||||
print_int();
|
||||
|
||||
%rdi <- copy "\n";
|
||||
print_string();
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
globals ()
|
||||
%rdi <- copy 42;
|
||||
observe_int();
|
||||
end
|
|
@ -3,7 +3,7 @@ TARGET = retrolix
|
|||
|
||||
main:
|
||||
@for f in $(wildcard *.$(TARGET)); do \
|
||||
printf "%s:\n" $$f; \
|
||||
printf "%s: " $$f; \
|
||||
./$(FLAP) -s $(TARGET) -d true -r true $$f; \
|
||||
printf "\n"; \
|
||||
done
|
||||
|
|
Reference in a new issue