home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng)
/
ProfitPress-MegaCDROM2.B6I
/
MAGAZINE
/
MISC
/
PJ_9_6.ZIP
/
ALIB.ZIP
/
GETVECTO.ASM
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Assembly Source File
|
1991-06-25
|
316 b
|
29 lines
include asm.inc
public get_vector
.code
;; get vector
;
; entry AL vector #
; exit DS:SI selected vector
; Zf if null vector
; uses AX
;
get_vector proc
mov ah,0
add ax,ax
add ax,ax
xchg ax,si
xor ax,ax
mov ds,ax
lds si,[si]
mov ax,ds
or ax,si
ret
get_vector endp
end