.model small
.stack 100h
.data
buffer db 8 dup("$")
.code
main proc
mov ax,@data
mov ds,ax
LEA dx,buffer
mov ah,0Ah
int 21h
LEA dx,buffer
mov ah,09h
int 21h
LEA dx,buffer
mov ah,09h
int 21h
mov ah,4ch
int 21h
main endp
end main
I took input from user by storing 0A in ah register and then I am trying to output the string on screen twice, but the program printing the string only once. What can be the problem?