Advertisement
Guest User

Untitled

a guest
Aug 11th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. global _start
  2. global sys_write
  3. extern main
  4.  
  5. section .text
  6.  
  7. _start: call main
  8. mov ebx, eax ; now call _exit
  9. mov eax, 1
  10. int 80h
  11. sys_write: mov eax, 4
  12. push ebp
  13. mov ebp, esp
  14. push ebx
  15. mov ebx, [ebp+8]
  16. mov ecx, [ebp+12]
  17. mov edx, [ebp+16]
  18. int 80h
  19. mov esp, ebp
  20. pop ebp
  21. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement