Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.  
  3. .bss
  4. .comm input, 512
  5.  
  6. .text
  7. .globl _start
  8. _start:
  9.  
  10. mov $0, %rax
  11. mov $0, %rdi
  12. mov $input, %rsi
  13. mov $512, %rdx
  14. syscall
  15.  
  16. mov $0, %rcx
  17.  
  18. _loop:
  19. inc  %rcx
  20.  
  21. mov $1, %rax
  22. mov $1, %rdi
  23. mov $input, %rsi
  24. mov $512, %rdx
  25. syscall
  26.  
  27. cmp $6, %rcx
  28. jl _loop
  29.  
  30. mov $60, %rax
  31. mov $0, %rdi
  32. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement