
THE INTERRUPT STRUCTURE OF 8086 8-35
MOV DL, 36H
INT 10H ;this program sets a video window
OVER: POP AX
JMP CS:OLD
NEWINT9 ENDP
START: MOV AH, 35H ;save old interrupt vector
MOV AL, 09 ;the type number = 9
INT 21H ;DOS interrupt for getting vector
MOV WORD PTR OLD, BX ;save old IP
MOV WORD PTR OLD+2, ES ;save old CS
MOV AH, 25H ;install new vector
MOV AL, 09 ;at type number 9
MOV DX, OFFSET NEWINT9 ;point DX to the new ISR
INT 21H
MOV DX, OFFSET START ;count the number of paragraphs
MOV CL, 4
SHR DX, CL
INC DX
MOV AX, 3100H ;make the program resident
INT 21H
END
Example 8.15 is a similar program, except ...