I am trying to take a string as input from my emu 8086 assembler. I want to print the inputted string as output. While printing the string i am getting some funny characters as output along with the input I have given.
What should I do to stop entering input I have tried to terminate the input with a $
sign.
DATA SEGMENT
A DW ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV AH,0AH
LEA DX,A
INT 21H
LEA DX,A
MOV AH,9H
INT 21H
CODE ENDS
END START