diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-10-05 21:49:54 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-10-05 21:49:54 +0200 |
commit | c5fcf7179a83ef65c86c6a4a390029149e518649 (patch) | |
tree | d29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /semestr-4/ask/lista7/wrap.s | |
parent | f8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff) |
Duzy commit ze smieciami
Diffstat (limited to 'semestr-4/ask/lista7/wrap.s')
-rw-r--r-- | semestr-4/ask/lista7/wrap.s | 18 |
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 |