Advertisement
MichaelPetch

SO 78434982

May 6th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. INCLUDE Irvine32.inc
  2.  
  3. .data
  4. promptName BYTE "What is your name? ", 0
  5. promptHello BYTE "Hello there, ", 0
  6.  
  7. ; (insert variable definitions here)
  8. userName BYTE 20 DUP(?)
  9.  
  10. .code
  11. main PROC
  12. MOV EDX, OFFSET promptName
  13. call WriteString
  14. MOV EDX, offset userName
  15. MOV ECX, length userName-1
  16. call ReadString
  17. call CrLf
  18.  
  19. MOV EDX, OFFSET promptHello
  20. call WriteString
  21. MOV EDX, OFFSET userName
  22. call WriteString
  23. call CrLf
  24. ret
  25. main ENDP
  26.  
  27. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement