Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - cputype http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   cputype

   Usage
   #include <dos.h>
   int cputype(void);

   Description
   Reports the type of Intel CPU fitted. This function is real mode only,
   it should not be used under OS/2 in protected mode.

   Example
   #include <stdio.h>
   #include <dos.h>

   main()
   {
   char *type[10] = {"8088/8086","80186","80286","80386"};
        printf("The cpu is an %s\n",type[cputype()]);
   }

   Return Value
   An integer indicating the type of CPU fitted:
   0    8088/8086/V20
   1    80186
   2    80286
   3    80386


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson