Advertisement
Guest User

Triangle Star_ EMU8086

a guest
Oct 3rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ; You may customize this and other start-up templates;
  3. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  4.  
  5. org 100h
  6. .data
  7. var dw ?
  8. .code
  9. main proc  
  10.  
  11. mov ah,01h
  12. int 21h
  13.  
  14. mov bl,al
  15. mov bh,0
  16. mov var,bx
  17.  
  18. sub var,48
  19.  
  20.  
  21. mov ah,02
  22. mov dx,0dh
  23. int 21h
  24. mov dx,0ah
  25. int 21h
  26.  
  27. mov cx,var
  28.  
  29. l1:  
  30. mov bx,cx  
  31.  
  32. while:               ;while loop
  33. mov ah,02h           ;Star print
  34. mov dx,42
  35. int 21h
  36.  
  37. dec bx ;Decrement
  38. cmp bx,1
  39. jge while
  40.  
  41.  
  42. mov ah,02
  43. mov dx,0dh            ;new line
  44. int 21h
  45. mov dx,0ah
  46. int 21h
  47.  
  48. loop l1               ;loop
  49.  
  50. end main proc
  51.  
  52. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement