head	1.1;
access;
symbols;
locks
	yap:1.1; strict;
comment	@;; @;


1.1
date	97.11.27.09.32.40;	author yap;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@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
@
