Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
how can I return a value within embedded assembler?
Jump...
Cancel
Locked
Locked
Replies
7 replies
Subscribers
119 subscribers
Views
6723 views
Users
0 members are here
Options
Share
More actions
Cancel
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
how can I return a value within embedded assembler?
Sebastian Gaertner
over 12 years ago
Note: This was originally posted on 8th May 2009 at
http://forums.arm.com
Hi,
does anybody know how I can write an embedded ASM function that returns the actual PSR value? I prefered to go on like this:
int getCpsr( void )
{
int currentCPSR;
MRS currentCPSR, CPSR
return currentCPSR;
}
how can I return a value within embedded assembler?
Parents
zart zurt
over 12 years ago
Note: This was originally posted on 8th May 2009 at
http://forums.arm.com
Normally ARM and Thumb-2 instruction sets are the same except the binary form. And in the link I provided , it said that CPSR named register was supported for all processors. Sorry , it did not work that way...
Cancel
Vote up
0
Vote down
Cancel
Reply
zart zurt
over 12 years ago
Note: This was originally posted on 8th May 2009 at
http://forums.arm.com
Normally ARM and Thumb-2 instruction sets are the same except the binary form. And in the link I provided , it said that CPSR named register was supported for all processors. Sorry , it did not work that way...
Cancel
Vote up
0
Vote down
Cancel
Children
No data