Assume cs:code, ds:code
Code Segment
org 100h
start: mov ax,cs
mov ds,ax
; установка видеорежима
mov ah, 0
mov al, 3
int 10h
; ввод строки
BB: mov ah, 0ah
lea dx, string
int 21h
; перевод строки
mov ah, 9
lea dx, crlf
int 21h
; вывод строки
mov ah, 9
lea dx, string
int 21h
exit: mov ah, 4ch
int 21h
string db 255, 255 dup(0)
crlf db 0ah, 0dh, '$'
loop BB
code ends
end start