It seems to be the simplest task for the input-output of a string, but, for some reason, there is no conditional transition when a string reaches a certain length. As I just did not try: through, and through. He does not interrupt the cycle. Here is one of the broken implementations of the problem procedure:
Input: mov ah,2 mov dh,[string] mov dl,[column] mov bh,2 int 10h mov si,[len] mov di,line inputLoop: mov ah,0 int 16h cmp al,13 jz endInput mov [di],al mov ah,9 mov bh,2 mov bl,[color] mov cx,1 int 10h add di,2 inc dx mov ah,2 mov bh,2 int 10h dec si cmp si,0 jnz inputLoop endInput: ret 