Thursday, December 29, 2016

Write a program to print triangle in assembly language

Assembly programming language - Write a program to print triangle in assembly language here is the source code.



.MODEL SMALL
.STACK 100H
  
.CODE
    MAIN PROC  
    
        MOV AH,2
       
        MOV DL,' '
        INT 21H
        INT 21H
        INT 21H
        MOV DL,'*'
        INT 21H
       
        MOV DL,0DH
        INT 21H
        MOV DL,0AH
        INT 21H
       
        MOV DL,' '
        INT 21H
        INT 21H
       
        MOV DL,'*'
        INT 21H
        INT 21H
        INT 21H
                  
        MOV DL,0DH
        INT 21H
        MOV DL,0AH
        INT 21H
        
        MOV DL,' '
        INT 21H
       
        MOV DL,'*'
        INT 21H
        INT 21H
        INT 21H
        INT 21H
        INT 21H 
       
        MOV AH,4CH
        INT 21H
         MAIN ENDP
    END MAIN


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




Don't Forget To Read This Also...




No comments :

Speak Your Mind: