Go to the first, previous, next, last section, table of contents.


__dpmi_get_coprocessor_status

Syntax

#include <dpmi.h>

int __dpmi_get_coprocessor_status(void);

Description

Please refer to section DPMI Specification, for details on DPMI function call operation. Also see section DPMI Overview, for general information.

DPMI function AX = 0x0e00 (DPMI 1.0 only). Not supported by CWSDPMI and Windows.

Return Value

-1 on error, else returns the processor status flags. Here's the meaning of each set bit:

bit 0
If set, co-processor is enabled. If reset, co-processor is disabled.
bit 1
If set, the application is emulating the co-processor.
bit 2
If set, the numeric co-processor is present.
bit 3
If set, the DPMI host is emulating the co-processor.
bits 4-7
The co-processor type:
0000
none
0010
80287
0011
80387
0100
80486 with a numeric processor

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.