Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. section .data
  2. a db "What's your name?", 10
  3. b db "Good day, "
  4.  
  5. section .bss
  6. c resb 1024
  7.  
  8. section .text
  9. global _start
  10.  
  11. _start:
  12. mov rax, 1
  13. mov rdi, 1
  14. mov rsi, a
  15. mov rdx, 18
  16. syscall
  17. mov rax, 0
  18. mov rdi, 0
  19. mov rsi, c
  20. mov rdx, 1024
  21. syscall
  22. mov rax, 1
  23. mov rdi, 1
  24. mov rsi, b
  25. mov rdx, 11
  26. syscall
  27. mov rax, 1
  28. mov rdi, 1
  29. mov rsi, c
  30. mov rdx, 1024
  31. syscall
  32. mov rax, 60
  33. mov rdi, 0
  34. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement