Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  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.  
  7. start: jmp main
  8. x db ?
  9. y db ?
  10.  
  11. proc h
  12. push cx
  13. mov ah, 0ch
  14. mov al, 14
  15. mov bh, 0
  16. mov cx, si
  17. int 10h
  18. inc si
  19. pop cx
  20. loop h
  21. ret
  22. h endp
  23.  
  24. proc v
  25. push cx
  26. mov ah, 0ch
  27. mov al, 14
  28. mov bh, 0
  29. mov cx, si
  30. int 10h
  31. inc dx
  32. pop cx
  33. loop v
  34. ret
  35. v endp
  36.  
  37. proc main near
  38. mov ax, 00h
  39. mov al, 13h
  40. int 10h
  41. ;h1
  42. mov si, 100 ;x
  43. mov dx, 31 ;y
  44. mov cx, 10
  45. call h
  46. ;v1
  47. mov dx, 31 ;y
  48. mov si, 100 ;x
  49. mov cx, 40
  50. call v
  51. ;v2
  52. mov dx, 31 ;y
  53. mov si, 110 ;x
  54. mov cx, 10
  55. call v
  56. ;h2
  57. mov si, 110 ;x
  58. mov dx, 41 ;y
  59. mov cx, 12
  60. call h
  61. ;v3
  62. mov dx, 36 ;y
  63. mov si, 116 ;x
  64. mov cx, 5
  65. call v
  66. ;v4
  67. mov dx, 41 ;y
  68. mov si, 122 ;x
  69. mov cx, 8
  70. call v
  71. ;h3
  72. mov si, 110 ;x
  73. mov dx, 49 ;y
  74. mov cx, 12
  75. call h
  76. ;v5
  77. mov dx, 49 ;y
  78. mov si, 110 ;x
  79. mov cx, 40
  80. call v
  81. ;h1
  82. mov si, 90 ;x
  83. mov dx, 71 ;y
  84. mov cx, 10
  85. call h
  86.  
  87. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement