Advertisement
Guest User

Untitled

a guest
Feb 25th, 2024
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .intel_syntax noprefix
  2.  
  3. .section .text
  4. .balign 16
  5.  
  6. .globl _MYASMFUNC@8
  7. _MYASMFUNC@8:
  8. push ebp
  9. mov ebp, esp
  10. sub esp, 4
  11. push ebx
  12. push esi
  13. push edi
  14. mov dword ptr [ebp-4], 0
  15. .L_0004:
  16. mov eax, [ebp+8]        
  17. add eax, [ebp+12]        
  18. mov [ebp-4], eax  
  19. .L_0005:
  20. mov eax, dword ptr [ebp-4]
  21. pop edi
  22. pop esi
  23. pop ebx
  24. mov esp, ebp
  25. pop ebp
  26. ret 8
  27. .balign 16
  28.  
  29. .globl _main
  30. _main:
  31. push ebp
  32. mov ebp, esp
  33. and esp, 0xFFFFFFF0
  34. sub esp, 12
  35. mov dword ptr [ebp-4], 0
  36. call ___main
  37. push 0
  38. push dword ptr [ebp+12]
  39. push dword ptr [ebp+8]
  40. call _fb_Init@12
  41. .L_0002:
  42. push 1
  43. push 7
  44. push 42
  45. call _MYASMFUNC@8
  46. push eax
  47. push 0
  48. call _fb_PrintInt@12
  49. push -1
  50. call _fb_Sleep@4
  51. .L_0003:
  52. push 0
  53. call _fb_End@4
  54. mov eax, dword ptr [ebp-4]
  55. mov esp, ebp
  56. pop ebp
  57. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement