www.delorie.com/djgpp/doc/libc/libc_222.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__dpmi_get_coprocessor_status

Syntax

 
#include <dpmi.h>

int __dpmi_get_coprocessor_status(void);

Description

Please refer to DPMI Specification, for details on DPMI function call operation. Also see 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

ANSI/ISO C No
POSIX No


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004