Sunday, 25 March 2018

How to print A to Z using for loop in Assembly Language?

.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC                ; Print A to Z

    MOV CX,26
 
    LOOP:
 
    MOV AH,2
    MOV DL,'A'
 

    TOP:
    INT 21H
    INC DL
    LOOP TOP
   
    EXIT:
   
    MOV AH,4CH
    INT 21H
    MAIN ENDP
END MAIN

No comments:

Post a Comment