I believe detection of math coprocessor is often done by either calling
INT 0x11 (result in AX) or reading the 16-bits at 0x40:0x10.  Bit 1 being
the truth flag of the processor's presence.  There are other ways of
finding out too.

Louis

---------------------------------------------------------
"So what are you gonna put on your resume...DUMB ASS?!?!"
                          - Red Foreman of That '70s Show

On Fri, 30 Jul 1999, Greg Haerr wrote:

> On Friday, July 30, 1999 10:31 AM, Eric J. Korpela [SMTP:[EMAIL PROTECTED]] 
>wrote:
> : >   ELKS doesn't yet support floating point.  The bcc compiler libraries have
> : > support for 32 bit floating point though.  All ELKS float support will have
> : > to come from bcc primarily, unless you're talking about OS support of math
> : > coprocessors...
> : 
> : On machines with coprocessors the the coprocessor state needs to be saved
> : with the rest of the process context.  Isn't being done now.  Problem is it
> : makes the context bigger and the swap longer.  How long is an FSAVE on an
> : 8087?
> :
>       I see.  Does anyone have any code for auto-detection of an 8087/8287/8387?
> 
> Admittedly ELKS probably doesn't need FP, but my MicroWindows main demo
> does have a 3d graphics demo that requires floating point, it'd still be nice to run 
>it ;-)
> 
> gh
> 

Reply via email to