Mzsmunna
10/16/2019 - 9:11 AM

mzsdcodecoalab1


.MODEL SMALL
.STACK 100H
.CODE         ;Start of Coding
MAIN PROC     ;Start of Procedure
    
    MOV AH,1   ;input function
    INT 21H    ;function execution
    MOV BL,AL  ;copy value from AL to BL
    
    
    MOV AH,2     ;display function
    MOV DL,0DH   ;bring cursor to left( <- )
    INT 21H      ;function execution
    MOV DL,0AH   ;New line or Enter
    INT 21H      ;function execution
    
    
    MOV DL, BL       ;copy value from BL to DL
    INT 21H          ;function execution
    
    
    MOV AH,4CH      ;exit function
    INT 21H         ;function execution
    MAIN ENDP       ;end of procedure

END MAIN