home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / INTEL.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  2KB  |  35 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  SNIPPETS functions for Intel CPUs and NDP's
  5. */
  6.  
  7. #ifndef INTEL__H
  8. #define INTEL__H
  9.  
  10. #include "sniptype.h"         /* For True_ and False_                   */
  11. #include "extkword.h"         /* For CDECL                              */
  12.  
  13. int CDECL cpu_ID(void);       /* Returns: AL - CPU family
  14.                                                0 = 8086/8088
  15.                                                1 = 80186
  16.                                                2 = 80286
  17.                                                3 = 80386
  18.                                                4 = 80486
  19.                                                5 = Pentium
  20.                                                6 = Pentium Plus
  21.                                           AH - Features bitmap
  22.                                                01h = Has coprocessor
  23.                                                02h = Is 386/287
  24.                                                04h = Is 386SX
  25.                                                08h = Is Cyrix
  26.                                                10h = Is NEC
  27.                                                20h = Is NexGen
  28.                                                40h = is AMD
  29.                                                80h = Is UMC             */
  30.  
  31. extern CDECL save_8087(void);       /* Save coprocessor environment     */
  32. extern CDECL restore_8087(void);    /* Restore coprocessor environment  */
  33.  
  34. #endif /* INTEL__H */
  35.