aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista7/wrap.s
diff options
context:
space:
mode:
Diffstat (limited to 'Semestr 4/ask/lista7/wrap.s')
-rw-r--r--Semestr 4/ask/lista7/wrap.s18
1 files changed, 18 insertions, 0 deletions
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