Advertisement
kokokozhina

3sin2Acos3B

May 18th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2. fmt db "%lf", 0
  3. a dq 1.0
  4. b dq 2.0
  5. two dq 2.0
  6. three dq 3.0
  7.  
  8. section .bss
  9. l: resq 1
  10.  
  11. section .text
  12. ;extern _scanf
  13. extern _printf
  14. global _main
  15.  
  16. _main:
  17. ;push l
  18. ;push fmt
  19. ;call _scanf
  20. ;add esp, 8
  21. fld qword [a]
  22. fmul qword [two]
  23. fsin
  24. fst st1
  25. fld qword [b]
  26. fmul qword [three]
  27. fcos
  28. fmul st1
  29. fmul qword [three]
  30. fst qword [l]
  31. push dword [l+4]
  32. push dword [l]
  33. push fmt
  34. call _printf
  35. add esp, 12
  36. xor eax, eax
  37. xor ecx, ecx
  38. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement