Guest User

Untitled

a guest
Jun 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ;#include <stdio.h>
  2.  
  3. section .data
  4. ;char msg[] = "Hello World\n";
  5. msg db "Hello World!", 0x0a
  6.  
  7. section .text
  8. global _start
  9. ;int main(){
  10.  
  11. _start:
  12. ;int i = 0;
  13. push 0
  14.  
  15. loop:
  16. ;write(stdout, msg, 13);
  17. mov eax, 4
  18. mov ebx, 1
  19. mov ecx, msg
  20. mov edx, 13
  21. int 0x80
  22.  
  23. ;i++;
  24. inc DWORD [esp-4]
  25.  
  26. ;if(i < 10)
  27. ; goto loop;
  28. cmp DWORD [esp-4], 10
  29. jl loop
  30.  
  31. ;exit(0)
  32. mov eax, 1
  33. mov ebx, 0
  34. int 0x80
  35. ;}
Add Comment
Please, Sign In to add comment