⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpu.c

📁 一个CPU特性检测源程序
💻 C
字号:
/* ------------------------------------------------------------------------- *
 * CPU.C  Sample program demonstrating usage of TMi0SDGL(tm) routines        *
 * 									     *
 * Copyright(c) 1994,95 by B-coolWare.  Written by Bobby Z.		     *
 * ------------------------------------------------------------------------- *
 * files needed to build project:
   CPU.C
   CPUTYPE.C
   CPU_HL.ASM
   CPUSPEED.ASM
   SMM.ASM
*/

#include <stdio.h>
#include "cputype.h"

char* SMM[2] = {"","  [SL Enhanced]"};

void main()
{
 puts("CPU Type Identifier/C  Version 1.17  Copyright(c) 1992-95 by B-coolWare.\n");

 /* due to parameters passing convention CPU_Speed() routine will be called
    first, when _CPU is not yet defined. So we should call cpuType_Str
    before invoking CPU_Speed() */
 printf("  Processor: %s, ",cpuType_Str());
 printf("%dMHz%s\n",intCPU_Speed(),SMM[isSMMAble()]);
 if (IsCyrix())
  printf("  Cyrix CPU Step: %d, Revision: %d\n",CxStep(),CxRevision());
 printf("Coprocessor: %s\n",fpuType_Str());
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -