User manual

Appendix D Register-Level Programming
PC-DIO-96/PnP User Manual D-32
©
National Instruments Corporation
and al,bh ; Enable interrupts for selected level
out masks,al
mov int_mask,cx ; Save the previous value of the mask
; restore saved registers
ii_exit:
pop es
pop ds
pop dx
pop cx
pop bx
pop ax
pop bp
sti
ret
_install_isr endp
; remove_isr
;
; bp reg at [bp+0]
; ret addr ofs at [bp+2]
; ret addr seg at [bp+4]
;
_remove_isr proc far
cli
push ax
push bx
push cx
push dx
push ds
push es
mov ax,seg _DATA
mov ds,ax