home *** CD-ROM | disk | FTP | other *** search
- ;
- comment !
- Overlay interrupt vector for COM1 with 03F8
- to reset address as COM1 for normal async.
- (C) Copywrite,1986 - SoftWeir and Associates, Don Weir
-
- endc !
- com1 group code,data,stack
- data segment para
- data ends
- ;
- stack segment para
- stack ends
- ;
- code segment para
- assume cs:code,ds:data,ss:stack
- ;
- pop bp ;return segment addr
- pop cx ;return segment offset
- ;
- ;point the interrupt vector to segment 40
- push es
- mov ah,00h
- mov al,40h
- mov es,ax
- ;
- ;move F8 to offset 02
- ;
- mov byte ptr es:[02],0F8h
- ;
- ;move 03 to offset 03
- ;
- mov byte ptr es:[03],03h
- ;
- ;turn off com3
- ;
- sub al,al
- mov dx,03e9h
- out dx,al
- mov dx,03ech
- out dx,al
- ;
- ;turn on com1
- ;
- mov al,0bh
- mov dx,03f9h
- out dx,al
- mov dx,03fch
- out dx,al
- ;
- ;pop modified vector off stack
- ;
- pop es
- push cx ;restore return offset
- push bp ;restore return segment
-
- ;
- return proc far
- ret ;return to caller
- return endp
- code ends
- end
- end install_proc
-