Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>cputype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CPUTYPE()
 Determines what type of microprocessor in use
------------------------------------------------------------------------------
 Syntax

     CPUTYPE() --> nCPUType

 Returns

     CPUTYPE() returns a numeric code that identifies the microprocessor in
     use.

 Description

     This function determines which microprocessor is in use.  For instance,
     a PC may use a Vnn microprocessor or an AT may use a 386 microprocessor.
     The microprocessors have the following codes:

     Table 12-1: Microprocessor Coding
     ------------------------------------------------------------------------
     Value   Symb. constant    Processor
     ------------------------------------------------------------------------
     0       CPU_8088          8088
     1       CPU_8086          8086
     2       CPU_V20           V20
     3       CPU_V30           V30
     4       CPU_80188         80188
     5       CPU_80186         80186
     6       CPU_80286         80286
     7       CPU_80386         80386
     8       CPU_80486         80486
     ------------------------------------------------------------------------

 Example

     What type of microprocessor is on the AT?

     IF CPUTYPE() == CPU_80386
        ? "A 386 ..."
     ENDIF


See Also: PCTYPE() SPEED()

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