; Template for DOS .exe file


        assume  cs:cseg, ds:dseg, ss:sseg

        ; code
cseg    segment
start:
        ; ... put your code here ...
push cs 
pop ds 
MOV BL,20H 
MOV CX,10H 
MOV BH,06H 
T1: 
MOV DL,BL 
MOV AH,02H 
INT 21H 
MOV DL,' ' 
INT 21H 
INC BL 
LOOP T1 
MOV DL,0DH 
INT 21H 
MOV DL,0AH 
INT 21H 
DEC BH 
MOV CX,10H 
JNZ T1 
mov ah,0 
int 16h 
INT 20h 

        ; exit to DOS
        mov     ax, 4C00h
        int     21h

cseg    ends


        ; data
dseg    segment byte

        ; ...

dseg    ends


        ; stack
sseg    segment stack

        db      100h    dup(?)

sseg    ends
end start
