Advertisement
salmancreation

loop and dec of print colum and row

Nov 3rd, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA    
  4. .CODE    
  5.  
  6.  
  7.  
  8.  
  9. MAIN PROC
  10.    
  11.      MOV CX,6
  12.      MOV BX,6
  13.    
  14.     TOP:
  15.     MOV AH,2
  16.     MOV DL,'*'
  17.     INT 21H
  18.     DEC BX
  19.     CMP BX,0
  20.     JE EXIT
  21.     JMP TOP
  22.    
  23.     EXIT:
  24.     MOV AH,2
  25.     MOV DL,10
  26.     INT 21H
  27.     MOV DL,13
  28.     INT 21H
  29.    
  30.     MOV BX,6
  31.     LOOP TOP  
  32.    
  33.     MOV AH,4CH
  34.     INT 21H
  35.  
  36.     MAIN ENDP
  37. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement