Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- printf_format:
- .string "%lf\n"
- .text
- .global main
- main:
- pushl %ebp
- movl %esp, %ebp
- subl $8, %esp
- pushl $0x40100000
- pushl $0x00000000
- pushl $0x40080000
- pushl $0x00000000
- pushl 24(%esp)
- call myhypot
- movl %ebp, %esp
- popl %ebp
- myhypot:
- pushl %ebp
- movl %esp, %ebp
- movsd 20(%ebp), %xmm0
- mulsd %xmm0, %xmm0
- sub $8, %esp
- movsd %xmm0, (%esp)
- pushl $printf_format
- call printf
- movl %ebp, %esp
- popl %ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement