rdos/kernel/intr.asm

20 lines
232 B
NASM

; set item in interrupt vector table
; in: bx interrupt number
; ds:dx new handler address
ivt_set:
push es
push ax
xor ax,ax
mov es,ax
sal bx,1
sal bx,1
mov [es:bx], dx
mov [es:bx+2], ds
pop ax
pop es
ret