Feb 22, 2012 at 7:08pm UTC
I am trying to verify if the CPUID instruction is supported by the processor. I have this function that sends an assembly code to the processor:
1 2 3 4 5 6 7 8 9
BOOL SupportCPUID() {
try {
asm (".intel_syntax noprefix\n\txor eax, eax\n\tcpuid\n.att_syntax\n" );
}
catch (char *str) {
return false ;
}
return true ;
}
It returns me a true value always. How do I check if this works on a processor without CPUID (even if they are less now)? Do you think it will work? Thanks!
Last edited on Feb 22, 2012 at 7:08pm UTC
Feb 28, 2012 at 8:38am UTC
Does this mean it is right or "no idea"? :D
Feb 28, 2012 at 5:18pm UTC
Last edited on Feb 28, 2012 at 5:22pm UTC
Feb 28, 2012 at 5:44pm UTC
Thanks for the link. Anyway, I suppose that I must find something that works with any processor.