This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can't read CPSR correctly

Note: This was originally posted on 15th October 2009 at http://forums.arm.com

hello,
I write the following codes to determine the mode in which the processor(Xscale) operates:

int x;
    asm volatile ("mrs %0, cpsr"
            :"=r"(x)
        );  
    printf("cpsr:%x\n", x);


however, the result is:
cpsr:20000013

it doesn't seem to mean any mode, so what's going on?
0