From c5fcf7179a83ef65c86c6a4a390029149e518649 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Tue, 5 Oct 2021 21:49:54 +0200 Subject: Duzy commit ze smieciami --- semestr-4/ask/lista7/eval.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 semestr-4/ask/lista7/eval.s (limited to 'semestr-4/ask/lista7/eval.s') diff --git a/semestr-4/ask/lista7/eval.s b/semestr-4/ask/lista7/eval.s new file mode 100644 index 0000000..f7340a0 --- /dev/null +++ b/semestr-4/ask/lista7/eval.s @@ -0,0 +1,18 @@ + .global eval + + .text +eval: + movq %rdi, %rax + movq 16(%rsp), %rcx + movq 24(%rsp), %rdx + movq (%rdx), %rsi + movq %rcx, %rdx + imulq %rsi, %rdx + movq %rdx, (%rdi) + movq 8(%rsp), %rdx + movq %rdx, %rdi + subq %rsi, %rdi + movq %rdi, 8(%rax) + subq %rcx, %rdx + movq %rdx, 16(%rax) + ret \ No newline at end of file -- cgit v1.2.3