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
)
Which complier version are you using?If your using Arm Compiler 5, you can use "Use MOV Rn, expression" which generates a load from a literal pool as stated in arminfo.emea.arm.com/.../chr1359124248868.html.
MOV Rn, expression