954,490 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how can you input a string, clear the screen, then print Hello "string"

how can you input a string, clear the screen, then print Hello "string"?
example:

org 100h
           
MOV AX,03
INT 10H

MOV AH,02
MOV BH,00
MOV DH,0CH
MOV DL,19H
INT 10H

MOV DX,OFFSET MSG1
MOV AH,09
INT 21H
MOV DX,OFFSET SZ  
MOV AH,0AH
INT 21H

MOV AX,03
INT 10H

MOV AH,02
MOV BH,00
MOV DH,0FH
MOV DL,0AH
INT 10H

MOV AH,09
MOV DX,OFFSET MSG2
INT 21H
MOV DX,(XXXXX)
INT 21H
INT 20H
ret

MSG1 DB "ENTER NAME: $"
MSG2 DB "HELLO $"
SZ db 25,?, 25 dup(' ')


i dont know what to put in the XXXXX part..
can someone tell me where the inputted string is stored?
is the code correct?
TIA

makubexiii
Light Poster
27 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You