print_n_chars:; dl - char; dh - repeat mov ah, 2print_n_chars_1: int 21h dec dh jnz print_n_chars_1 ret
.MODEL smallSTACK 100hDATAsegLF EQU 0ahTAB EQU 09hmsg1 DB "Hello1 $"msg2 DB TAB,TAB,"Hello2 ",lf,lf,'$'msg3 DB TAB,TAB,"Hello3 ",lf,lf,'$'msg4 DB "Hello4 $"msg5 DB TAB,TAB,"Hello5 ",lf,'$'CODEsegstart: MOV AX,@data MOV DS,AX MOV DX,offset msg1 mov ah,TAB int 21h MOV DX,offset msg2 mov ah,TAB int 21h MOV DX,offset msg3 mov ah,TAB int 21h MOV DX,offset msg4 mov ah,TAB int 21h MOV DX,offset msg5 mov ah,TAB int 21h mov ah,04Ch mov al,1h int 21hEND start