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.