[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   Function:   CPUval()

               CPUval is a function that will test the CPU, and return a
               indicating what type of CPU is has found. Currently CPUval
               differentiates betweeem 8086, 80286 and 80386 processors. More
               could have been added (like v20, v30, 8088 etc..), But they
               cannot be of great usage for the average Clipper programmer.
               When I have had the chance to test for the 486 presence, It
               will also be added to the next release of Expand (I have the
               code, but will want to test it before release).

               This Function can be more accurate that ROMid(), as it
               actually tests the CPU, ROMid() merely looks for an ID
               byte in the Computer's ROM.

   Syntax:     CPUval()

   Arguments:  None

   Returns:    One of the following numbers: 86, 286 or 386. Indicating
               what CPU it has found in the machine.

   Usage:      if CPUval() < 386
                 ? 'I want to run on a bloody 386, okay?'
                 quit
               endif

See Also: ROMid() CPUname()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson