fork download
  1. section.data
  2. msg db "enter the number",10
  3. len equ $-msg
  4.  
  5. section.bss
  6. no1 resb 64
  7.  
  8. section.text
  9. global _start
  10. _start:
  11.  
  12. mov rax,1
  13. mov rdi,1
  14. mov rsi,msg
  15. mov rdx,len
  16. syscall
  17.  
  18. mov rax,0
  19. mov rdi,0
  20. mov rsi,no1
  21. mov rdx,64
  22. syscall
  23.  
  24. mov rax,1
  25. mov rdi,1
  26. mov rsi,no1
  27. mov rdx,rax
  28. syscall
  29.  
  30. mov rax,60
  31. mov rdi,0
  32. syscall
Success #stdin #stdout 0s 5276KB
stdin
1

2

3
stdout
enter the number