Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model tiny
- .code
- org 100h
- main:
- get_args:
- xor bx, bx
- mov si, 82h
- mov bx, 2fh
- cmp [si], bx
- jne installed
- inc si
- xor bx, bx
- mov bx, 30h
- cmp [si], bx
- je r1
- xor bx, bx
- mov bx, 31h
- cmp[si], bx
- je r2
- jmp installed
- ours_interrupt_magic_num1 db 80h
- ours_interrupt_magic_num2 dw 77h
- r1:
- mov ah, ours_interrupt_magic_num1
- mov al, 0
- int 2fh
- cmp ax, ours_interrupt_magic_num2
- je installed
- mov dx, offset r1
- int 27h
- r2:
- mov dx, offset r2
- int 27h
- installed:
- mov ax, 00h
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement