<< Back

cesky: , English:

CPU

Processor info


GetCPUInfo - get CPU info structure

OUTPUT:
BX = pointer to CPU info structure
CPUINFO


GetCPUInfoText - get CPU info text

OUTPUT:
BX = pointer to
TEXT structure (NULL on memory error)
CY = memory error (BX = NULL)

NOTES: Returned text should be destroyed using TextFree.


CPUINFO - CPU info structure

CPUINFO_Type: (byte) CPU type (see below)
CPUINFO_Vendor (byte) CPU vendor (see below)
CPUINFO_Flags: (word) CPU flags (see below)
CPUINFO_Freq: (dword) CPU frequency in kHz
CPUINFO_Name: (word) pointer to
CTEXT CPU name
CPUINFO_VendID: (word) pointer to
CTEXT vendor ident.
CPUINFO_VendNam: (word) pointer to
CTEXT vendor name
CPUINFO_Equip: (word) point. to
CTEXT, equipment list

CPU type:

CPUUnknown: (=0) unknown CPU type (value is not used)
CPU8086: (=1) Intel 8086
CPUV30: (=2) NEC V30
CPU186: (=3) Intel 80186
CPU286: (=4) Intel 80286
CPU386: (=5) Intel 80386
CPU486: (=6) Intel 80486
CPUPent: (=7) Pentium
CPUTypeMax (=CPUPent) max. CPU type

CPU vendor:

CPU_VEND_GENER (=0) generic or unknown
CPU_VEND_INTEL (=1) Intel ("GenuineIntel")
CPU_VEND_AMD (=2) AMD ("AuthenticAMD")
CPU_VEND_CYRIX (=3) Cyrix ("CyrixInstead")
CPU_VEND_CENT (=4) Centaur ("CentaurHauls")
CPU_VEND_NEXGEN (=5) NexGen ("NexGenDriven")
CPU_VEND_TRANS (=6) Transmeta ("GenuineTMx86")
CPU_VEND_RISE (=7) Rise ("RiseRiseRise")
CPU_VEND_UMC (=8) UMC ("UMC UMC UMC ")
CPU_VEND_SIS (=9) SiS ("SiS SiS SiS ")
CPU_VEND_VIA (=10) VIA ("VIA VIA VIA ")
CPU_VEND_VORTEX (=11) Vortex ("Vortex86 SoC")
CPU_VEND_NSC (=12) National Semiconductor ("Geode by NSC")
CPU_VEND_NUM (=13) number of vendor codes

CPU flags:

CPU_FPU (=B0) FPU numeric coprocessor present
CPU_CPUID (=B1) CPUID instruction supported
CPU_RDTSC (=B2) RDTSC (Time Stamp Counter) supported
CPU_MMX (=B3) MMX instructions supported
CPU_SSE EQU (=B4) SSE instructions supported
CPU_SSE2 EQU (=B5) SSE2 instructions supported


Source code CPU.ASM

<< Back