Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. global main
  2. extern scanf
  3. extern printf
  4.  
  5. section .data
  6. gwiazdeczka: db '* ',0
  7. x: equ 5
  8.  
  9. section .bss
  10. i: resb 1
  11.  
  12. section .text
  13.  
  14. main:
  15.  
  16. mov byte[i],0
  17.  
  18. petla:
  19.  
  20. inc byte[i]
  21. mov rax,0
  22. mov rdi, qword gwiazdeczka
  23. call printf
  24.  
  25. cmp byte[i], x
  26. jne petla
  27.  
  28. koniec:
  29. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement