Appendix D Register-Level Programming
PC-DIO-96/PnP User Manual
D-34
©
National Instruments Corporation
; restore saved registers
ri_exit:
pop es
pop ds
pop dx
pop cx
pop bx
pop ax
sti
ret
_remove_isr endp
; isr_handler
;
_isr_handler
proc
far
cli
push
ax
push
ds
; service interrupt
; Your code here...
; if this was not your interrupt, jump to 'ih_0'
; if this was your interrupt, service it as appropriate;
; the pointer for the data structure 'isr_block' is stored
; at _DATA:isrb_addr; to access the structure, use the
; following steps:
;
; mov ax,seg _DATA
; mov ds,ax
; lds si,isrb_addr
;
; you need not use ds:si, but be sure to save any
; registers you use...
Содержание PC-DIO-96/PnP
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 63: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 68: ......
Страница 69: ......
Страница 70: ......
Страница 71: ......
Страница 72: ......
Страница 73: ......