DCPU16 23
[COAL] print " #***#***#***#***#*** " using nested loops Guest on 12th November 2020 11:03:05 AM
  1. .model small
  2. .stack 100h
  3. .data
  4. .code
  5. main proc
  6.    mov bh, 90
  7.    mov cx,5
  8. L1:
  9.    mov dl,'#'
  10.    mov ah,2
  11.    int 21h
  12.    mov bx,cx
  13.    mov cx,3
  14.  
  15. L2:
  16.    mov dl,'*'
  17.    mov ah,2
  18.    int 21h        
  19.    loop L2
  20.    mov cx,bx
  21.    loop L1
  22.    
  23.    
  24.      mov ah,4ch
  25.      int 21h
  26.    
  27.     main endp
  28. end main

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.