qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Test8087
  System Unit Contents Index                                Back
 
  CONST
      Test8087 : Byte = 0;    { 8087 autodetection result }
 
  Unit:  System (used automatically)
 
  Description
 
    A routine is executed at start-up to detect presence of a
    coprocessor. The result of the test is stored in Test8087. The
    value indicates the type of coprocessor, if any:
 
      Value    Coprocessor status
      ═════    ═════════════════════════
 
      0        No coprocessor
      1        8087 coprocessor present
      2        80287 coprocessor present
      3        80387 coprocessor present
 
    The DOS environment settings SET 87=N or SET NO87 override the
    detection routine, causing Test8087 to contain 0 even if a
    coprocessor is present. The setting SET 87=Y also overrides the
    detection routine, forcing the return of a value indicating that a
    coprocessor is present, whether or not this is true.