Advertisement
naeem043

ASSEMBLY DESENDING PRINT

Apr 27th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3. .CODE
  4. MAIN PROC
  5.        INCLUDE 'EMU8086.INC'
  6.  
  7.        MOV AH,1
  8.        INT 21H      
  9.        MOV CL,AL
  10.        PRINTN ''
  11.        
  12.        TOP:  
  13.            
  14.            MOV AH,2
  15.            MOV DL,CL
  16.            INT 21H
  17.            DEC CL
  18.            CMP CL, '0'
  19.            JG TOP
  20.  
  21.  
  22.     EXIT:
  23.     MOV AH,4CH
  24.     INT 21H
  25.     MAIN ENDP
  26. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement