1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| .model small
.code
mov cl,0
; 1- Interruption 21h Fonction 35h. Lire le vecteur d'interruption
mov ah,35h ; AH = Numéro de la fonction
mov al,1ch ; AL = Numéro du vecteur lu
int 21h ; ES:BX contient le vecteur recherché (SEGMENT et OFFSET)
; Interruption 21h Fonction 25h. Modifier un vecteur d'interruption
mov ax,seg spit1C
mov ds,ax ;Adresse du nouveau vecteur à installer
mov dx,offset spit1C ; DS DX (SEGMENT et OFFSET)
mov ax,251Ch; AH=25h et AL=numéro du vecteur
int 21h
; Attente 10 secondes
attente:
cmp cl,182
jb attente
;Remise du système dans l'état initial
mov ax,es ;
mov ds,ax
mov dx,bx
mov ax,251Ch
int 21h
mov ah,4ch
int 21h
spit1C proc ; Sous-programme d'interruption
add cl,1
iret ; se termine par iret
endp
end |
Partager