I'm trying to access the cpsr on the arm, so I wrote the following code (actaully copied the assembly part out of the help file on MRS):
__asm {MRS R0, CPSR}
compiling armVIC.c... *** MRS R0, CPSR ARMVIC.C(28): error C197: inline-asm: undefined identifier *** MRS R0, CPSR ARMVIC.C(28): error C197: inline-asm: Syntax error
Guess I'm answering all my own questions today, needed to change it to:
__asm {MSR CPSR_cxsf, R0}