home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
DESQVIEW
/
DVKPOLL.ZIP
/
DVKPOLL.ASM
next >
Wrap
Assembly Source File
|
1988-06-18
|
1KB
|
73 lines
CODE SEGMENT 'CODE'
ASSUME CS:CODE,DS:NOTHING,ES:NOTHING,SS:NOTHING
BEGIN:
JMP SHORT START
HANDLER PROC FAR
CMP AH,1
JE IS_POLL
CMP AH,11H
JE IS_POLL
JMP DWORD PTR CS:OLD_VECTOR
IS_POLL:
PUSHF
CALL DWORD PTR CS:OLD_VECTOR
JNZ DONE
PUSH AX
PUSHF
MOV AX,1000H
INT 15H
POPF
POP AX
DONE:
RET 2
OLD_VECTOR DD 0
HANDLER ENDP
START PROC FAR
JCXZ LOADING
PUSH DS
PUSH ES
POP DS
MOV DX,DI
MOV AX,2516H
INT 21H
POP ES
XOR DI,DI
MOV AX,1002H
INT 15H
RET
LOADING:
MOV BX,OFFSET START
MOV AX,1001H
INT 15H
PUSH CS
POP DS
MOV SI,OFFSET HANDLER
MOV DI,SI
MOV CX,BX
CLD
REP MOVSB
PUSH ES
POP DS
MOV AX,3516H
INT 21H
MOV DI,OFFSET OLD_VECTOR
MOV [DI],BX
MOV [DI+2],ES
MOV DI,BX
MOV DX,OFFSET HANDLER
MOV AX,2516H
INT 21H
CLC
RET 12
START ENDP
CODE ENDS
END