Mail Archives: djgpp/1996/09/11/01:27:12
On 9 Sep 1996, Brennan The Reverend Bas Underwood wrote:
> I'm not the original poster, but I'd like to be able to issue a warning
> when I detect "coprocessor not present" for my current project. It'll
> still work w/emulation, just much slower. I noticed Quake will flat
> out refuse to run with 387=N set.
There is a function called `_detect_80387' (I think it's public, but if
not, you can find its source in the library sources) that the DJGPP
startup code calls to find out if there is an FPU. I guess you can just
call it (it returns zero if there is no FPU, non-zero otherwise).
- Raw text -