-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDRSIVEC.ASM
43 lines (34 loc) · 914 Bytes
/
DRSIVEC.ASM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
; DRSI 8530 card interrupt hooks
;% .MODEL MEMMOD,C
include asmgloba.h
LOCALS
%MACS
.LALL
extrn Stktop,Spsave,Sssave,drint:proc,doret:proc,eoi:proc
.CODE
dbase dw @Data ; save loc for ds (must be in code segment)
; dr0vec - DRSI card #0 interrupt handler
public dr0vec
label dr0vec far
push ds ; save on user stack
mov ds,cs:dbase ; establish interrupt data segment
mov Sssave,ss ; stash user stack context
mov Spsave,sp
mov ss,cs:dbase
lea sp,Stktop
; push ax ; save user regs on interrupt stack
; push bx
; push cx
; push dx
; push bp
; push si
; push di
PUSHALL
push es
call eoi
mov ax,0 ; arg for service routine
push ax
call drint
pop ax
jmp doret
end