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
)
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