title setup_int
;
; procedure to setup interrupt vectors
;	(this is pgm15_a, p.319 of text)
;
PUBLIC setup_int
.model small
.code
setup_int proc
; input: al=int no.
;        di,si=addr of buffer for old,new vector
; save old vec
        mov ah,35h
        int 21h
        mov [di],bx
        mov [di+2],es
; setup new vec
        mov dx,[si]
        push ds
        mov ds,[si+2]
        mov ah,25h
        int 21h
        pop ds
        ret
setup_int endp
        end
