Advertisement
Guest User

xzxzzxz

a guest
Dec 12th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. .586
  2.  
  3. .model flat, stdcall
  4. option casemap:none
  5.  
  6. include \masm32\include\windows.inc
  7. include \masm32\include\kernel32.inc
  8. include \masm32\include\user32.inc
  9. include \masm32\include\masm32.inc
  10. include \masm32\include\debug.inc
  11. include \masm32\include\masm32rt.inc
  12.  
  13. includelib \masm32\lib\kernel32.lib
  14. includelib \masm32\lib\user32.lib
  15. includelib \masm32\lib\debug.lib
  16. includelib \masm32\lib\msvcrt.lib
  17. includelib \masm32\lib\fpu.lib
  18.  
  19. .data
  20. a real8 2.0
  21. tri real8 3.0
  22. h real8 4.0
  23. b real8 10.0
  24. res real8 0.0
  25.  
  26. .code
  27. start:
  28. finit
  29. fld a
  30. fmul st,st
  31. fld tri
  32. fmul
  33. fld b
  34. fmul
  35. fld h
  36. fld a
  37. fmul
  38. fsubp st(1),st
  39. fstp res
  40. print "res = "
  41. print real8$(res),13,10
  42. invoke crt__getch
  43. invoke crt_exit,0
  44. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement