Spike wrote on 22/12/04 :
> What's wrong with this:
>
> ULONG CPUID_Result=0;
> asm ("movl $1,%%eax;cpuid;"
> :"=a"(CPUID_Result)
> : //Ingen input!
> :"%eax","%ebx","%ecx","%edx");
>
> All I want to do is call CPUID with EAX=1 and have to result stored in
> CPUID_Result!
You are off-topic on clc.
Are you aware that asm in gcc is AT&T style (destination and source are
reversed and other twisted things...)
Details on a gcc forum where you question belongs to.
news:gnu.gcc.help
--
Emmanuel
The C-FAQ:
http://www.eskimo.com/~scs/C-faq/faq.html
The C-library:
http://www.dinkumware.com/refxc.html
"Clearly your code does not meet the original spec."
"You are sentenced to 30 lashes with a wet noodle."
-- Jerry Coffin in a.l.c.c++