海信家电”换帅 “ 高玉玲接替代慧忠出任新任董事长
2024-11-22
EBX:756E6547H 'Genu' EDX:49656E69H 'ineI' ECX:6C65746EH 'ntel' EBX,EDX,ECX 将连成"GenuineIntel", 真正的Intel。 |
EBX:43797269H EDX:78496E73H ECX:74656164H "CyrixInstead","Cyrix 来代替"。 |
EBX:41757468H EDX:656E7469H ECX:63414D44H "AuthenticAMD", 可信的AMD。 |
//------CPUID Instruction Demo Program------------ #include #include #pragma hdrstop //------------------------------------------------ #pragma inline #pragma argsused int main(int argc, char **argv) { char OEMString[13]; int iEAXValue,iEBXValue,iECXValue,iEDXValue; _asm { mov eax,0 cpuid mov DWORD PTR OEMString,ebx mov DWORD PTR OEMString+4,edx mov DWORD PTR OEMString+8,ecx mov BYTE PTR OEMString+12,0 } cout< < "This CPU 's OEM String is:"< < OEMString< < endl; _asm { mov eax,1 cpuid mov iEAXValue,eax mov iEBXValue,ebx mov iECXValue,ecx mov iEDXValue,edx } if(iEDXValue&0x800000) cout < < "This is MMX CPU"< < endl; else cout < < "None MMX Support."< < endl; int iCPUFamily=(0xf00 & iEAXValue) > >8; cout < < "CPU Family is:"< < iCPUFamily< < endl; _asm{ mov eax,2 CPUID } if(_AL==1) cout < < "Pentium Pro or Pentium II Found"; getch(); return 0; } |
评论 {{userinfo.comments}}
{{child.content}}
{{question.question}}
提交