View Single Post
Old Jul 9th, 2005, 1:27 PM   #1
MrSmiley
Programmer
 
MrSmiley's Avatar
 
Join Date: May 2005
Posts: 41
Rep Power: 0 MrSmiley is on a distinguished road
INLINE conversions

Ok, so I am getting off of Visual Studios 6 and moving to Dev-C++(Which uses GCC). Well I'm currently writing an app that taps your Hardware information to get CPUID. It compiles fine in VS6 but since GCC uses AT&T asm, I'm stuck doing something completly different. So, I was wondering if anyone could tell me the proper way to translate this...

_asm{ 
xor eax, eax 
cpuid 
mov cpumax, eax 
// put vendor string in cpusignature 
mov edi, t 
mov dword ptr [edi], ebx 
mov dword ptr [edi+4], edx 
mov dword ptr [edi+8], ecx 
mov byte ptr [edi+12], 0 
}

Also if anyone knows how to get either the FSB or Multi from CPUID that information would be greatly appreciated.
MrSmiley is offline   Reply With Quote