fork download
  1. section .data
  2. msg db "Name: "
  3. db 0xa
  4. Lmsg equ $-msg
  5. msg2 db "Your name is "
  6. Lmsg2 equ $-msg2
  7.  
  8. section .bss
  9. input resb 100
  10. section .text
  11. global _start
  12. _start:
  13. mov eax, 4
  14. mov ebx, 1
  15. mov ecx, msg
  16. mov edx, Lmsg
  17. int 80h
  18.  
  19. mov eax, 3
  20. mov ebx, 0
  21. mov ecx, input
  22. mov edx, 100
  23. int 80h
  24.  
  25. mov esi, eax
  26.  
  27. mov eax, 4
  28. mov ebx, 1
  29. mov ecx, msg2
  30. mov edx, Lmsg2
  31. int 80h
  32.  
  33. mov eax, 4
  34. mov ebx, 1
  35. mov ecx, input
  36. mov edx, esi
  37. int 80h
  38.  
  39. mov eax, 1
  40. mov ebx, 0
  41. int 80h
  42.  
Success #stdin #stdout 0s 544KB
stdin
bob
stdout
Name: 
Your name is bob