Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INCLUDE Irvine32.inc
- .data
- promptName BYTE "What is your name? ", 0
- promptHello BYTE "Hello there, ", 0
- ; (insert variable definitions here)
- userName BYTE 20 DUP(?)
- .code
- main PROC
- MOV EDX, OFFSET promptName
- call WriteString
- MOV EDX, offset userName
- MOV ECX, length userName-1
- call ReadString
- call CrLf
- MOV EDX, OFFSET promptHello
- call WriteString
- MOV EDX, OFFSET userName
- call WriteString
- call CrLf
- ret
- main ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement