Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .386
  2. .model flat, c
  3. .data
  4. num4 dd 4.0
  5. num1 dd 1.0
  6. num8 dd 8.0
  7. num2 dd 2.0
  8. .code
  9. calc PROC
  10.     push ebp
  11.     mov ebp, esp
  12. fld dword ptr[ebp +8];C
  13. fcom dword ptr[ebp +12];D
  14. fstsw ax;
  15. sahf
  16. ja first
  17. fld qword ptr[ebp +16];A
  18. fdiv dword ptr[ebp + 12];D
  19. fyl2x
  20. fdiv dword ptr[ebp+8]
  21. fldln2
  22. fmul
  23. fmul num4
  24. fadd num1
  25. fld dword ptr [ebp+8]
  26. fsub dword ptr[ebp+12]
  27. fadd qword ptr[ebp+16]
  28. fdiv
  29. jmp Endfunc
  30. first:
  31. fld dword ptr[ebp+12]   ;c>d
  32. fsub num1
  33. fyl2x
  34. fdiv  dword ptr[ebp+8]
  35. fldlg2
  36. fmul
  37. fmul num8
  38. fsub dword ptr [ebp+8];чисельник
  39. fld qword ptr [ebp+16]
  40. fmul num2
  41. fld dword ptr[ebp+12]
  42. fdiv dword ptr[ebp+8]
  43. fadd
  44. fdiv
  45. Endfunc:
  46.     pop ebp
  47.     ret
  48. calc ENDP
  49.  
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement