Thread: Do me a favor?

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Do me a favor?

    I'm hoping you guys running K8 or P3 and up CPUs can help me with something,
    run the program CPUID.EXE.TXT (I had to add the .txt to allow an upload)
    or if for any reason you don't trust me, compile and run CPUID.CPP
    then tell me what the program says, and also say the exact specs of your processor.
    Thanks.

  2. #2
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Funny thing is that's actually not too big for a text file.

    Be nice if you put it's output in a text box so we could just copy and paste for you.

    Vendor: GenuineIntel

    Family: 15
    Model: 6
    exFamily: 0
    ExModel: 0
    Type: 0
    Stepping: 5
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Vendor: GenuineIntel

    Family: 15
    Model: 6
    exFamily: 0
    ExModel: 0
    Type: 0
    Stepping: 5

    (yes, same as guesst)

    Pentium D 925 (Presler) 3.00ghz

    btw, cpu-z says Ext. Model 6. No idea what that means, but your program says 0. Ext. Family, too. cpu-z says F (15, same as Family).

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Family 6
    Model 15
    ExFamily 0
    ExModel 0
    Type 0
    Stepping 2

    This is supposedly a Core2 Duo, so I expected it to be different from a D925...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Code comments:
    Code:
       asm("push eax;"
           "push ebx;"
           "push ecx;"
           "push edx;"
           "mov eax, 0;"
           "cpuid;"
           "mov [_CPUVendor], ebx;"
           "mov [_CPUVendor + 4], edx;"
           "mov [_CPUVendor + 8], ecx;"
           "mov [_CPUSignature], eax;");
    No need to save registers. MS compiler figures out what registers you use and save them for you.

    I personally would write a simple function that gets you a, b, c and d as DWORD's from CPUID function x, e.g something like this [syntax of storing a, b, c and d is possibly faulty]
    Code:
    void getcpuid(DWORD func, DWORD *a, DWORD *b, DWORD *c, DWORD *d)
    {
    
      __asm("mov eax, func;"
           "cpuid;"
           "mov b, ebx;"
           "mov d, edx;"
           "mov c, ecx;"
           "mov a, eax;");
    }
    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RAND() Does it favor the lower number?
    By Queatrix in forum C++ Programming
    Replies: 4
    Last Post: 04-12-2006, 02:38 PM
  2. A huge favor to ask
    By Doomkiller in forum Windows Programming
    Replies: 1
    Last Post: 09-17-2005, 08:56 PM
  3. Asking a favor of anyone with a GeForce 3
    By psychopath in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 07-23-2005, 09:49 PM
  4. Could someone do me a REALLY quick favor
    By DarkViper in forum Windows Programming
    Replies: 1
    Last Post: 08-10-2003, 04:50 AM
  5. Need a favor!!!
    By Nick Dillon in forum C++ Programming
    Replies: 4
    Last Post: 02-20-2002, 05:40 PM