Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- fmt db "%lf", 0
- a dq 1.0
- b dq 2.0
- two dq 2.0
- three dq 3.0
- section .bss
- l: resq 1
- section .text
- ;extern _scanf
- extern _printf
- global _main
- _main:
- ;push l
- ;push fmt
- ;call _scanf
- ;add esp, 8
- fld qword [a]
- fmul qword [two]
- fsin
- fst st1
- fld qword [b]
- fmul qword [three]
- fcos
- fmul st1
- fmul qword [three]
- fst qword [l]
- push dword [l+4]
- push dword [l]
- push fmt
- call _printf
- add esp, 12
- xor eax, eax
- xor ecx, ecx
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement