aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista7/wrap.s
blob: 6f01dfc9f9d1a247132b15933514b15c6c7c4f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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