Advertisement
apl-mhd

star print

Jul 23rd, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov bh,0
  2. mov bl,0
  3.  
  4.  
  5. lop:
  6. mov bl,0
  7. cmp bh,10     ;bh<5
  8. JL innerlop
  9. hlt
  10.  
  11.  
  12.  
  13. innerlop:
  14. cmp bl,bh
  15. jl print
  16.  
  17.  
  18. add bh,1
  19.    
  20. mov ah,2
  21. mov dl, 0AH
  22. int 21h
  23.        
  24.        
  25.  
  26. mov ah,2
  27. mov dl, 0DH
  28. int 21h
  29.  
  30.  
  31.  
  32.  
  33. jmp lop
  34. hlt
  35.  
  36.  
  37. print:
  38. mov ah,2
  39. mov dl, '*'
  40. int 21h
  41.  
  42. add bl,1
  43. jmp innerlop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement