mov eax,01h
;eax =1返回的是feature flag
http://www.intel.com/design/Pentium4/manuals/24547012.pdf
page 320
Feature flags returned in EDX
eax=03h ;return CPU serial number
__asm{
mov eax,03h
xor ecx,ecx
xor edx,edx
cpuid
mov s1,edx
mov s2,ecx
}
EAX Researved
EBX Researved
ECX Bits00-31 of 96 bit processor serial number(Available in Pentium 3 only)
EDX Bits32-63 of 96 bit processor serial number(Available in Pentium 3 only)