//cpu id 的获取<br>TCPUIDARRAY=array[1..4] of Longint;<br>function GetCPUID : TCPUIDARRAY; assembler;register;<br>asm<br> PUSH EBX {Save affected register}<br> PUSH EDI<br> MOV EDI,EAX {@Resukt}<br> MOV EAX,1<br> DW $A20F {CPUID Command}<br> STOSD {CPUID[1]}<br> MOV EAX,EBX<br> STOSD {CPUID[2]}<br> MOV EAX,ECX<br> STOSD {CPUID[3]}<br> MOV EAX,EDX<br> STOSD {CPUID[4]}<br> POP EDI {Restore registers}<br> POP EBXend;