National Instruments PC-DIO-96 User Manual page 62

Digital i/o board for the ibm pc/xt/at
Table of Contents

Advertisement

Register-Level Programming
;
on input, isr_block points to the data structure that will be used by
;
the isr_handler function
;
;
void
isr_handler(void);
;
;
the isr_handler() function will never be called from C.....
;
;
void
remove_isr(void);
;
public _install_isr, _isr_handler, _remove_isr
_DATA
segment word public 'DATA'
; declarations
ackm
equ
acks
equ
eoi
equ
maskm
equ
masks
equ
int_addr
dd
int_mask
dw
isrb_addr
dd
slave_ack
db
vect_num
db
_DATA
ends
_TEXT
segment word public 'CODE'
assume cs:_TEXT, ss:_TEXT, ds:_DATA
; install_isr
;
; bp reg
; ret addr ofs
; ret addr seg
; level
; isr_block ofs
; isr_block seg
;
_install_isr
cli
push
mov
push
push
push
push
push
push
mov
mov
; save the pointer for the isr_block structure--used in isr_handler
PC-DIO-96 User Manual
00020h
000a0h
00020h
00021h
000a1h
0
0
0
0
0
at [bp+0]
at [bp+2]
at [bp+4]
at [bp+6]
at [bp+8]
at [bp+10]
proc
far
bp
bp,sp
ax
bx
cx
dx
ds
es
ax,seg _DATA
ds,ax
4-24
© National Instruments Corporation
Chapter 4

Advertisement

Table of Contents
loading

Table of Contents