• Log in or sign up for an account here: https://www.sythe.org/login

grab processor name

mu-b

War is a Drug

Banned
Joined
Jun 24, 2009
Sythe Gold
0
Messages
1,353
Location
2336
grab processor name
Code:
char format[] = "%s %s\n";
char msg[] = "Your Processer is:";
char pr[13];

int main()
{
   

      __asm
   {
   
      xor eax,eax      
      cpuid

      mov dword ptr [pr],ebx
      mov dword ptr [pr+4],edx
      mov dword ptr [pr+8],ecx
       mov dword ptr [pr+12],0

     mov  eax, offset pr
     push eax
     mov  eax, offset msg
     push eax
     mov  eax, offset format
     push eax
     call printf


     pop  ebx
     pop  ebx
     pop  ebx
  }

  return 0;
}

tells u the name of you're processor.
 
grab processor name
Best part: That code will only work in C, where empty arg list means undefined arg list. Now tell me, do you even know what that code does? Why xor eax,eax. That much of a speed whore that you won't sub eax,eax, or mov eax,0?
 
Runescape Gamblingrunescape gambling
Back
Top