We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I declare a variable in ARM inline Assembly?
And how do I move the value from register to variable and vice versa?
Looking for something like this,
__asm(
variable: Word #22222222
mov r0, variable
mov variable, r0
)
In general whatever the compiler one would normally declare any statics using C rather than in an asm. In gcc one would have to say the static is an input or output of the asm as appropriate.