I am trying to play around with some assembly commands in Xcode and I'm getting a "Invalid mnemonic 'mov'" error. I have a basic Foundation Tool project setup:
I have Google'd a lot and haven't found anything helpful really. I'm assuming I'm missing a compiler switch or something?
(I eventually want to get the CPUID opcode to work, but that gives the same error)
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
asm
{
mov 0x1, eax
}
return 0;
}
I have Google'd a lot and haven't found anything helpful really. I'm assuming I'm missing a compiler switch or something?
(I eventually want to get the CPUID opcode to work, but that gives the same error)