Tuesday, December 6, 2016

Write a program to print all ASCII values using loop in Assembly Language

Assembly Language - Here is the source code with output for program to print all ASCII values using loop in Assembly Language.




.MODEL SMALL
.STACK 100H

.CODE
   MAIN PROC
   
    MOV CX,256
   
    MOV DL,0
    MOV AH,2
   
COUNT:   CMP CX,0
         JE FINISH
         INT 21H
         DEC CX
         INC DL
         JMP COUNT

FINISH:  

         MOV AH,4CH
         INT 21H
   
        MAIN ENDP
       END MAIN       


Output:
Here is how to Write a program to print all ASCII values using loop in Assembly Language



You Like It, Please Share This Article Using...




Don't Forget To Read This Also...




No comments :

Speak Your Mind: