Mzsmunna
10/16/2019 - 9:32 AM

PROBLEM2


.MODEL SMALL
.STACK 100H
.DATA

A DB 10

.CODE
MAIN PROC
    
   
    MOV CX,13
    
    MOV BL,80H
    
    MOV A,10 
    JMP L2
    
    
    L1:
    
    MOV AH,2
    MOV DL,0DH
    INT 21H
    MOV DL,0AH
    INT 21H
    
    MOV A,10
    
    
    
   L2: 
   
   MOV AH,2
   MOV DL,BL
   INT 21H
   mov dl,' '
   int 21h
   
   INC BL
   CMP BL,0FFH
   JE EXIT
   SUB A,1
   CMP A,1
   JGE L2
  
   
  
  LOOP L1
   
  
   EXIT:
   
   MOV AH,4CH
   INT 21H
   MAIN ENDP
END MAIN