Advertisement
SquirrelInBox

1

Apr 10th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. model tiny
  2. .code
  3. org 100h
  4.  
  5. main:
  6.  
  7. get_args:
  8.  
  9. xor bx, bx
  10. mov si, 82h
  11. mov bx, 2fh
  12. cmp [si], bx
  13. jne installed
  14.  
  15. inc si
  16. xor bx, bx
  17. mov bx, 30h
  18. cmp [si], bx
  19. je r1
  20.  
  21. xor bx, bx
  22. mov bx, 31h
  23. cmp[si], bx
  24. je r2
  25. jmp installed
  26.  
  27. ours_interrupt_magic_num1 db 80h
  28. ours_interrupt_magic_num2 dw 77h
  29.  
  30. r1:
  31. mov ah, ours_interrupt_magic_num1
  32. mov al, 0
  33. int 2fh
  34. cmp ax, ours_interrupt_magic_num2
  35. je installed
  36.  
  37. mov dx, offset r1
  38. int 27h
  39.  
  40. r2:
  41. mov dx, offset r2
  42. int 27h
  43.  
  44. installed:
  45. mov ax, 00h
  46.  
  47. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement