home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l440 / 2.ddi / CHAP5 / HAVE2E.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-09-26  |  376 b   |  19 lines

  1. ; HAVE2E.ASM
  2. .model small,c
  3. .code
  4. have2e  proc    ; returns 1 if ISR exists, else 0
  5.         public  have2e
  6. ; int have2e( void ); /* prototype */
  7.  
  8.         mov     ax,352Eh
  9.         int     21h
  10.         mov     al,es:[bx]
  11.         xor     al,0CFh         ; opcode for IRET
  12.         jz      h1
  13.         mov     ax,1
  14. h1:     cbw
  15.         ret
  16.  
  17. have2e  endp
  18.         end
  19.