home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 024 / psi110g.zip / PC100VEC.ASM < prev    next >
Assembly Source File  |  1993-09-16  |  845b  |  43 lines

  1. ;%    .MODEL  MEMMOD,C
  2. include asmglobal.h        
  3.     LOCALS
  4.     %MACS
  5.     .LALL
  6.  
  7.     extrn   Stktop,Spsave,Sssave,pcint:proc,doret:proc,eoi:proc
  8.  
  9.     .CODE
  10. dbase   dw      @Data           ; save loc for ds (must be in code segment)
  11.  
  12. ; pc0vec - PC-100 card #0 interrupt handler
  13.     public  pc0vec
  14.  
  15.     label   pc0vec  far
  16.     push    ds              ; save on user stack
  17.     mov     ds,cs:dbase
  18.  
  19.     mov     Sssave,ss       ; stash user stack context
  20.     mov     Spsave,sp
  21.  
  22.     mov     ss,cs:dbase
  23.     lea     sp,Stktop
  24.  
  25.     ; push    ax              ; save user regs on interrupt stack
  26.     ; push    bx
  27.     ; push    cx
  28.     ; push    dx
  29.     ; push    bp
  30.     ; push    si
  31.     ; push    di
  32.     PUSHALL
  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.