Mzsmunna
10/16/2019 - 9:13 AM

RO


.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC 
    
    MOV CX,0
    
    MOV AH,1
    INT 21H
    
    
    
    PUSH_: 
    
    
    CMP AL,0DH
    JE POP_
    
   
    PUSH AX 
    
    INC CX 
    
    MOV AH,1
    INT 21H
    JMP PUSH_
    
    POP_:
     
    
     
    MOV AH,2
    MOV DL,0DH
    INT 21H
    MOV DL,0AH
    INT 21H
    
    L1:
   
    
    POP DX
    MOV AH,2
    INT 21H 
    LOOP L1
    
   
    
    
    MOV AH,4CH
    INT 21H
    MAIN ENDP
END MAIN