Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. section .text
  2. global _start
  3.  
  4. _start:
  5.  
  6. mov eax,4
  7. mov ebx,1
  8. mov ecx,razy
  9. mov edx,[dl_razy]
  10. int 80h
  11.  
  12. mov eax,3
  13. mov ebx,0
  14. mov ecx,ile
  15. mov edx,[dl_ile]
  16. int 80h
  17.  
  18. xor esi,esi
  19.  
  20. petla:
  21.  
  22. mov eax,4
  23. mov ebx,1
  24. mov ecx,napis
  25. mov edx,[dl_napis]
  26. int 80h
  27.  
  28. inc esi
  29. cmp esi,[ile]
  30. jbe petla
  31.  
  32.  
  33. mov eax,1
  34. int 80h
  35.  
  36.  
  37. section .data
  38.  
  39. napis db "Hello, World", 0ah
  40. dl_napis dd $ - napis
  41.  
  42. ile db 0
  43. dl_ile dd $-ile
  44.  
  45. razy db "ile razy ma wyswietlic sie tekst", 0ah
  46. dl_razy dd $-razy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement