The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
June 13, 2021, 10:33:11 PM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Laboratory (Moderator: Mark_Larson)
| | |-+  Another CPU ID Program
« previous next »
Pages: [1] 2 3 4 Print
Author Topic: Another CPU ID Program  (Read 24964 times)
dedndave
Member
*****
Posts: 12523


Another CPU ID Program
« on: January 03, 2010, 11:26:03 AM »

hi folks
i would like to see how this runs on different machines
source is included, as always.............
Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 4
    bExtModel: 0
        bType: 0
        bStep: 3
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000101011101101110111b
      szBrand: Intel(R) Pentium(R) 4 CPU 3.00GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
NOTE - this routine is preliminary
it has a few problems, not the least of which is that it may provide inaccurate information for non-Intel/AMD processors
Code:
;    -    dwMiscBits
;               0_1 values come from CPUID function 1
;               8_1 values come from CPUID function 80000001h
;
;               Bit(s) Source        Name    Description
;
;                 0    0_1 edx:00    FPU     on-chip FPU
;                 1    0_1 edx:01    VME     virtual mode enhancements
;                 2    0_1 edx:02    DE      debug extension
;                 3    8_1 ecx:00    LAHF64  lahf/sahf in 64-bit mode
;                 4    0_1 edx:04    RDTSC   rdtsc instruction
;                 5    8_1 edx:29    LM64    Intel 64/AMD long mode
;                 6    0_1 edx:06    PAE     physical address extension
;                 7    0_1 ecx:23    POPCNT  popcnt instruction
;                 8    0_1 edx:08    CX8     cmpxchg8 instruction
;                 9    0_1 edx:24    FXSR    fxsave/fxrstor instructions
;                10    8_1 edx:11    SYSCALL syscall/sysret instructions
;                11    0_1 edx:11    SEP     sysenter/sysexit instructions
;                12    0_1 edx:28    HTT     hyper-threading technology
;                13    0_1 ecx:13    CX16    cmpxchg16 instruction
;                14                          unused in this version
;                15    0_1 edx:15    CMOV    cmov instructions
;               16-23  0_1 ebx:16-23         total thread count if HTT = 1
;               24-31                        unused in this version

* IdCpu.zip (10.11 KB - downloaded 500 times.)
« Last Edit: November 11, 2010, 04:38:15 PM by dedndave » Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: Another CPU ID Program
« Reply #1 on: January 03, 2010, 12:29:15 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 14
    bExtModel: 0
        bType: 0
        bStep: 8
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000001000101101010111b
      szBrand: Intel(R) Celeron(R) M CPU        420  @ 1.60GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
Logged

brethren
Member
*****
Posts: 172



Re: Another CPU ID Program
« Reply #2 on: January 03, 2010, 12:32:43 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 2
      bFamily: 15
   bExtFamily: 0
       bModel: 8
    bExtModel: 4
        bType: 0
        bStep: 2
     bMmxBits: 00000011b
   w3DNowBits: 0000000000000011b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000101011111101111111b
      szBrand: AMD Turion(tm) 64 X2 Mobile Technology TL-52
     szVendor: AuthenticAMD
        szMmx: MMX+
      sz3DNow: 3DNow!+
        szSse: SSE3
Press any key to continue ...
Logged
hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Another CPU ID Program
« Reply #3 on: January 03, 2010, 02:02:28 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 7
    bExtModel: 1
        bType: 0
        bStep: 10
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000011111b
   dwMiscBits: 00000000000001001011101101111111b
      szBrand: Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE4.1
Press any key to continue ...
Logged

Regards,



Download site for MASM32
http://www.masm32.com
hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Another CPU ID Program
« Reply #4 on: January 03, 2010, 02:07:39 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 4
    bExtModel: 0
        bType: 0
        bStep: 10
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000011011101101111111b
      szBrand: Genuine Intel(R) CPU 3.80GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
Press any key to continue ...
Logged

Regards,



Download site for MASM32
http://www.masm32.com
FORTRANS
Member
*****
Gender: Male
Posts: 1147


Imagine


Re: Another CPU ID Program
« Reply #5 on: January 03, 2010, 02:09:48 PM »

Hi,

Steve

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000200h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 8
    bExtModel: 0
        bType: 0
        bStep: 3
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000001b
   dwMiscBits: 00000000000000001000101101010111b
      szBrand:
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE
Press any key to continue ...

          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 13
    bExtModel: 0
        bType: 0
        bStep: 6
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000011b
   dwMiscBits: 00000000000000001000101100010111b
      szBrand: Intel(R) Pentium(R) M processor 1.70GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE2
Press any key to continue ...

          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000200h
    bVendorID: 1
      bFamily: 5
   bExtFamily: 0
       bModel: 4
    bExtModel: 0
        bType: 0
        bStep: 3
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000000b
   dwMiscBits: 00000000000000000000000100010111b
      szBrand:
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse:
Press any key to continue ...
Logged
dedndave
Member
*****
Posts: 12523


Re: Another CPU ID Program
« Reply #6 on: January 03, 2010, 04:23:54 PM »

very cool guys - many thanks   ThumbsUp
« Last Edit: November 11, 2010, 04:38:46 PM by dedndave » Logged
Vortex
Raider of the lost code
Member
*****
Gender: Male
Posts: 3460



Re: Another CPU ID Program
« Reply #7 on: January 03, 2010, 04:33:31 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 4
    bExtModel: 0
        bType: 0
        bStep: 9
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000101011101101111111b
      szBrand: Intel(R) Pentium(R) 4 CPU 3.20GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
Logged

Gunner
Member
*****
Gender: Male
Posts: 687

What the hell, why not.


Re: Another CPU ID Program
« Reply #8 on: January 03, 2010, 04:45:40 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 2
    bExtModel: 0
        bType: 0
        bStep: 7
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000011b
   dwMiscBits: 00000000000000011001101101010111b
      szBrand: Intel(R) Pentium(R) 4 CPU 2.40GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE2
Press any key to continue ...
Logged

~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com
fearless
Member
*****
Gender: Male
Posts: 226



Re: Another CPU ID Program
« Reply #9 on: January 03, 2010, 07:09:04 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 7
    bExtModel: 1
        bType: 0
        bStep: 7
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000011111b
   dwMiscBits: 00000000000001001011101101111111b
      szBrand: Intel(R) Core(TM)2 Quad  CPU   Q9550  @ 2.83GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE4.1
Press any key to continue ...
Logged

ƒearless
Bill Cravener
Member
*****
Gender: Male
Posts: 1465



Re: Another CPU ID Program
« Reply #10 on: January 03, 2010, 07:13:51 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 6
    bExtModel: 0
        bType: 0
        bStep: 4
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000101011101101111111b
      szBrand: Intel(R) Pentium(R) D CPU 2.80GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
Press any key to continue ...
Logged

My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat
BasilYercin
Member
**
Gender: Male
Posts: 28


Re: Another CPU ID Program
« Reply #11 on: January 03, 2010, 09:17:59 PM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 2
      bFamily: 15
   bExtFamily: 0
       bModel: 15
    bExtModel: 1
        bType: 0
        bStep: 0
     bMmxBits: 00000011b
   w3DNowBits: 0000000000000011b
     wSseBits: 0000000000000011b
   dwMiscBits: 00000000000000001000111101111111b
      szBrand: AMD Sempron(tm) Processor 3000+
     szVendor: AuthenticAMD
        szMmx: MMX+
      sz3DNow: 3DNow!+
        szSse: SSE2
Press any key to continue ...
Logged
GregL
Member
*****
Gender: Male
Posts: 1897



Re: Another CPU ID Program
« Reply #12 on: January 03, 2010, 09:58:55 PM »


          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 15
   bExtFamily: 0
       bModel: 6
    bExtModel: 0
        bType: 0
        bStep: 4
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000111b
   dwMiscBits: 00000000000000101011101101111111b
      szBrand: Intel(R) Pentium(R) D CPU 3.20GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE3
Press any key to continue ...
Logged
MichaelW
Global Moderator
Member
*****
Gender: Male
Posts: 5161


Re: Another CPU ID Program
« Reply #13 on: January 04, 2010, 05:54:06 AM »

P3:
Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000200h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 7
    bExtModel: 0
        bType: 0
        bStep: 3
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000000001b
   dwMiscBits: 00000000000000001000101101010111b
      szBrand:
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSE
Logged

eschew obfuscation
Siekmanski
Member
*****
Gender: Male
Posts: 112



Re: Another CPU ID Program
« Reply #14 on: January 04, 2010, 08:50:13 AM »

Code:
          EAX: 0
          ECX: 120
          EDX: 00403AB0h
       cbSize: 120
dwCoreAffMask: 00000000000000000000000000000001b
dwIdCpuStatus: 00000000h
    bVendorID: 1
      bFamily: 6
   bExtFamily: 0
       bModel: 15
    bExtModel: 0
        bType: 0
        bStep: 11
     bMmxBits: 00000001b
   w3DNowBits: 0000000000000000b
     wSseBits: 0000000000001111b
   dwMiscBits: 00000000000001001011101101111111b
      szBrand: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
     szVendor: GenuineIntel
        szMmx: MMX
      sz3DNow:
        szSse: SSSE3
Logged
Pages: [1] 2 3 4 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!