Tuesday, March 24, 2020

Using Multiple Loops in Intel 8086 Assembly Programming



TITLE PUCHTAA 
.MODEL SMALL 
.STACK 100H 
.DATA 
 
 
.CODE 
    MAIN: 
        MOV AX, @DATA 
        MOV DS, AX 
         
        MOV CL, 37H 
    LOOP1: 
        MOV DL, CL 
    LOOP2: 
        MOV AH, 02H 
        INT 21H 
         
        DEC DL 
        CMP DL, 30H 
        JNE LOOP2 
         
        MOV DL, 0AH 
        MOV AH, 02H 
        INT 21H 
         
         
        MOV DL, 0DH 
        MOV AH, 02H 
        INT 21H 
         
         
        DEC CL 
        CMP CL, 30H 
        JNE LOOP1 
         
          
         
        MOV AH, 04CH 
        INT 21H 
    END MAIN 

HERE IS OUTPUT OF THE PROGRAM

TUTORIAL ON USING MULTIPLE LOOPS IN ASSEMBLY LANGUAGE PROGRAMMING

2 comments:

Unknown said...

sir how can u do this 0123456789 Using loops and single character display function 1234567890
2345678901

Findurneed said...

Nothing to learn anything from his video

Complete Video Tutorials