; HAVE2E.ASM
.model small,c
.code
have2e  proc    ; returns 1 if ISR exists, else 0
        public  have2e
; int have2e( void ); /* prototype */

        mov     ax,352Eh
        int     21h
        mov     al,es:[bx]
        xor     al,0CFh         ; opcode for IRET
        jz      h1
        mov     ax,1
h1:     cbw
        ret

have2e  endp
        end
