I am a beginner in 8086 assembly language and am having trouble with the code. My code does work, i.e, it does print the string inputted, but shows two extra characters before displaying the actual string. I have no idea where those extra characters are coming from. Any help would be beneficial. Thanks!
lea dx, var1
mov ah, 0ah ;getting buffered input and storing it in var1
int 21h
mov dl, 10 ;line feed character being displayed
mov ah, 2h
int 21h
mov dx, 0 ;clearing the registers
mov ah, 0
mov dl, 0
lea dx, var1 ;print the string var1 to the screen
mov ah, 9h
int 21h