You are on page 1of 1

you need to do a carriage return and line feed to go to next line and place cursor

at the beggining of the line. For MASM you can use Call crlf or print values 0dh
and 0ah respectively.

-
-
-

1) Add in the data segment:

linefeed db 13, 10, "$"


2) And then use this anywhere you need a new line:

; new line
mov ah, 09
mov dx, offset linefeed
int 21h

-
-
-

MOV dl, 10 ; mov dx,10


MOV ah, 02h
INT 21h
MOV dl, 13 ; mov dx,13
MOV ah, 02h
INT 21h

You might also like