用CPUID指令读取CPU信息。
CPUID指令根据eax值不同,读取出来的信息不同。
1.1
得到供营商
1.2
处理器信息和特点位oEAX=2
:TLB形容标志信息
1.4
处理器号码oEAX=80000000h
:
1.6
延长的处理器信息和特点位oEAX=80000002h,
80000004h :
push esp
pop tmp
;;;处理器型号13*4字节
mov eax,80000004H
cpuid
push 0
push edx
push ecx
push ebx
push eax
mov eax,80000003H
cpuid
push edx
push ecx
push ebx
push eax
mov eax,80000002H
cpuid
push edx
push ecx
push ebx
push eax
;;;;wsprintf 参数 4*4 字节
push esp
push tmp
push offset szboy
push offset szBody
call wsprintf
add esp,54H ;平衡堆栈 4*4 + 13*4 + 4*4 =21*4 =84
invoke MessageBox,NULL,addr szBody,addr szTitle,NULL
invoke ExitProcess,NULL
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
end start