From 7dd4ef3c7c724badfe66a027ea3289d12ec0da46 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Thu, 22 Apr 2021 21:14:19 +0200 Subject: Ostatnie poprawki i testy routera --- Semestr 4/ask/lista7/wrap.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Semestr 4/ask/lista7/wrap.s (limited to 'Semestr 4/ask/lista7/wrap.s') diff --git a/Semestr 4/ask/lista7/wrap.s b/Semestr 4/ask/lista7/wrap.s new file mode 100644 index 0000000..6f01dfc --- /dev/null +++ b/Semestr 4/ask/lista7/wrap.s @@ -0,0 +1,18 @@ + .global wrap + + .text +wrap: + subq $72, %rsp + movq %rdx, (%rsp) + movq %rsp, %rdx + leaq 8(%rsp), %rax + pushq %rdx + pushq %rsi + pushq %rdi + movq %rax, %rdi + call eval + movq 40(%rsp), %rax + addq 32(%rsp), %rax + imulq 48(%rsp), %rax + addq $96, %rsp + ret \ No newline at end of file -- cgit v1.2.3