Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:37 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC