Advertisement
Guest User

Star Print_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. mov ah,02
  21. mov dx,0dh
  22. int 21h
  23. mov dx,0ah
  24. int 21h
  25.  
  26. mov cx,var
  27.  
  28. l1:  
  29. mov bx,0  
  30.  
  31. while:
  32. mov ah,02h
  33. mov dx,42
  34. int 21h
  35.  
  36. inc bx
  37. cmp bx,var
  38. jle while
  39.  
  40.  
  41. mov ah,02
  42. mov dx,0dh
  43. int 21h
  44. mov dx,0ah
  45. int 21h
  46.  
  47. loop l1
  48.  
  49. end main proc
  50.  
  51. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement