Advertisement
Sanchi285

num_piramid

Oct 1st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov bx,5 ;the height of piramid
  2. mov cx,0
  3.  
  4. outloop:
  5.  inloop:
  6.     mov ah,2
  7.     mov dx,bx
  8.     add dx,48
  9.     int 21h
  10.     add cx,1
  11.     cmp bx,cx
  12.     jne inloop
  13.    
  14.    
  15.     ;newline
  16.     MOV dl, 10
  17.     MOV ah, 02h
  18.     INT 21h
  19.     MOV dl, 13
  20.     MOV ah, 02h
  21.     INT 21h
  22.    
  23.      sub bx,1
  24.      mov cx,0
  25.      cmp bx,0
  26.  
  27. jne outloop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement