quote:Original post by Martee
You can''t directly use variables in inline ASM. I think this might do what you''re looking for:
int info = 0;
__asm__(
"mov $0x01,%eax\n\t"
"cpuid\n\t"
:"=a"(info)
);
~~~~~~~~~~
Martee
Tryed that, it generates parse errors (as does any of the input output syntexing stuff) I can''t even get the sample code from linuxassembly.org to compile with out the same errors. However they do also say that the way I have it should work and at least it compiles, but it then just can''t resolve the variables in the linker