Advertisement
Guest User

Problematic Code

a guest
Aug 17th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BITS 16
  2. ORG 32768
  3.  
  4. b0 db 0
  5. b1 db 0
  6. b2 db 0
  7. b3 db 0
  8. w0 dw 0
  9. w1 dw 0
  10. w2 dw 0
  11. w3 dw 0
  12. d0 dd 0
  13. d1 dd 0
  14. d2 dd 0
  15. d3 dd 0
  16. s0 resb 256
  17. s1 resb 256
  18. s2 resb 256
  19. s3 resb 256
  20. %DEFINE addr $
  21. os_cls equ 0009h
  22. os_prnt equ 0003h
  23. os_cursmov equ 0006h
  24. os_prnthl equ 000Ch
  25. os_prntnl equ 000Fh
  26. os_drawbg equ 002Ah
  27. os_getstr equ 0036h
  28.  
  29. cls:
  30. call os_cls
  31. ret
  32.  
  33. prnt:
  34. mov ax, word [w0]
  35. call os_prnt
  36. ret
  37.  
  38. cursmov:
  39. mov dh, byte [b0]
  40. mov dl, byte [b1]
  41. call os_cursmov
  42. ret
  43.  
  44. prnthl:
  45. mov ax, byte [b0]
  46. call os_prnthl
  47. ret
  48.  
  49. prntnl:
  50. call os_prntnl
  51. ret
  52.  
  53. drawbg:
  54. mov ax, word [w0]
  55. mov bx, word [w1]
  56. mov cx, word [w2]
  57. call os_drawbg
  58. ret
  59.  
  60. getstr:
  61. mov ax, word [w0]
  62. call os_getstr
  63. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement