Advertisement
Guest User

Untitled

a guest
May 15th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. mov %rsp,%r9
  2. read:
  3. mov $0,%rax
  4. mov $0,%rbx
  5. mov %rsp,%rcx
  6. mov $1,%rdx
  7. syscall
  8. add $8,%rsp
  9. cmp $0,%rax
  10. jne read
  11. mov %rsp,%r8
  12. sub %r9,%r8
  13. movq $1,%rax
  14. movq $1,%rsi
  15. movq %rsp,%rsi
  16. movq %r8,%rdx
  17. syscall
  18. movq $60, %rax
  19. movq $0, %rdi
  20. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement