Can't get output of assembly language code
问题 I am newbie in assembly language. I am trying to get a string of numbers from user terminated by Enter or the length of the string reaching 20. When I executed the program it didn't show any error, but neither did it show any output nor did it terminate when the string exceeded the 20 characters limit. My code is: .model small .stack 100h .data var1 db 100 dup('$') .code main proc mov ax, @data mov dx, ax mov si, offset var1 l1: mov ah, 1 int 21h cmp al,20 je programend mov [si], al inc si