Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
function argument assigne to ARM register in assembly
Locked
Locked
Replies
5 replies
Subscribers
119 subscribers
Views
5327 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
function argument assigne to ARM register in assembly
Rachit Shah
over 12 years ago
Note: This was originally posted on 4th September 2009 at
http://forums.arm.com
Hello,
I am developing application on OMAP3530-beagleboard using code sourcery tool chain.
I have used assembly function in my C application.Function has 5 argument it's called from another c function.
function like: void routine(signed char *a, int b, signed char *c, unsigned char *d, unsigned int *e)
{
asm volatile{
........assembly syntaxs....
};
}
Here, function argument a to d are stored in r0 to r3 but argument e either go to stack or store into r4 to r12 register as per called function ?
How can i write assembly syntax in my assembly function to get value of argument e in any specific register so I can use in my function correctly?
How can I write assembly syntax so assembly function parameter passing become independent of called function variable usage means I can use this routine function any other application without doing changed inside the assembly syntax to catch parameter value ?
Thanks,
0
Quote