[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Single Page

Top Document: x86 Assembly Language FAQ - General Part 1/3
Previous Document: 8. How Can STDERR Be Redirected To A File
Next Document: 10. IRQ Assignments


9. How To Determine The CPU Type


9.1  CPUID PROGRAM

The type of processor and math coprocessor can be determined using two
functions that have been provided by Intel.  The source code to these
functions can be obtained from Intel by:

    ftp://ftp.intel.com/pub/IAL/tools_utils_demos/cpuid3.zip

Three source files are included in this .zip file.
    cpuid3a.asm - This source code file contains two assembly language
        functions.  One determines the type of cpu from 8088/8086 to
        Pentium.  The second detects and identifies, if present, the
        type of math coprocessor.
    cpuid3b.c - a c program that calls the above two functions and
        displays the results.
    cpuid3c.asm - this is an assembly program equivalent to cpuid3b.c.

9.2  AP-485 INTEL PROCESSOR IDENTIFICATION WITH THE CPUID INSTRUCTION

This Application Note explains how to use the CPUID instruction in
software applications, BIOS implementations, and various processor
tools.  By taking advantage of the CPUID instruction, software
developers can create software applications and tools that can execute
compatibly across the widest range of Intel processor generations and
models, past, present, and future.

    http://developer.intel.com/design/pro/applnots/241618.htm

9.3  Robert Collins' CPUID.ASM

Robert Collins has written two columns for Dr. Dobb’s Journal on this
subject.  These articles with source code is available on his web site:

    Part 1: http://www.x86.org/ddj/Sep96/Sep96.html
    Part 2: http://www.x86.org/ddj/Nov96/Nov96.html

9.4  Grzegorz Mazur's x86 CPU Identification

Grzegorz has a series of hypertext articles that explain x86 CPU
identification algorithms developed by him.  Covered are not only the
Intel chips but also V20, V30 (remember them), and Cyrix.  His page is
located:

    http://grafi.ii.pw.edu.pl/gbm/x86/

Contributor: Raymond Moon, raymoon@moonware.dgsys.com
Last changed: 18 Mar 97



Top Document: x86 Assembly Language FAQ - General Part 1/3
Previous Document: 8. How Can STDERR Be Redirected To A File
Next Document: 10. IRQ Assignments

Part1 - Part2 - Part3 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
raymoon@moonware.dgsys.com

Last Update October 22 2009 @ 05:22 AM

Some parts © 2009 Advameg, Inc.