Board index » delphi » Cpu vendor identification in BP7
Karem FENNOUC
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Cpu vendor identification in BP7
I downloaded an asm function from the Cyrix web site. It returns the values
contained in eax, ebx, ecx and edx registers after a cpuid call. What can I do to use it in BP7 (prototype of the external procedure ?) My problem is getting the cpu vendor identification (input eax = 0). Thanx. ;************************************************************************** push eax mov eax, dword ptr [bp+4] ; get level cpuid mov si,word ptr [bp+8] mov si,word ptr [bp+10] mov si,word ptr [bp+12] ; reg_ecx := ecx mov si,word ptr [bp+14] ; reg_edx := edx pop esi mov sp,bp |