home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / PC100VEC.ASM < prev    next >
Assembly Source File  |  1991-01-27  |  669b  |  43 lines

  1. ; PC-100 (8530 card) interrupt hooks
  2.  
  3.     .MODEL    MEMMOD,C
  4.     LOCALS
  5.     %MACS
  6.     .LALL
  7.  
  8.     extrn    Stktop,Spsave,Sssave,pcint:proc,doret:proc,eoi:proc
  9.  
  10.     .CODE
  11. dbase    dw    @Data        ; save loc for ds (must be in code segment)
  12.  
  13. ; pc0vec - PC-100 card #0 interrupt handler
  14.     public    pc0vec
  15.  
  16.     label    pc0vec    far
  17.     push    ds        ; save on user stack
  18.     mov    ds,cs:dbase
  19.  
  20.     mov    Sssave,ss    ; stash user stack context
  21.     mov    Spsave,sp
  22.  
  23.     mov    ss,cs:dbase
  24.     lea    sp,Stktop
  25.  
  26.     push    ax        ; save user regs on interrupt stack
  27.     push    bx
  28.     push    cx
  29.     push    dx
  30.     push    bp
  31.     push    si
  32.     push    di
  33.     push    es
  34.     call    eoi
  35.  
  36.     mov    ax,0        ; arg for service routine
  37.     push    ax
  38.     call    pcint
  39.     pop    ax
  40.     jmp    doret
  41.  
  42.     end
  43.