home *** CD-ROM | disk | FTP | other *** search
- include asm.inc
-
- public needs87
- extrn mathchip:proc, getkey:proc
-
- .data
- errmsg db 'Math coprocessor required',7,0Dh,0Ah,'$'
-
- .code
- needs87 proc
- call mathchip
- test ax,ax
- jnz exit ; OK if math coprocessor found
-
- ; no 8087 - print error msg, clean up stack & go back to menu
- lea dx,errmsg
- mov ah,9
- int 21h
- call getkey
- pop ax
- IF @codesize
- pop ax
- ENDIF
- exit:
- ret
- needs87 endp
-
- end
-