Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
can't read CPSR correctly
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
2736 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
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
arnina
over 12 years ago
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
Quote