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

How do I declare a variable in inline ARM Assembly?

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

)

Parents
  • 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.

Reply
  • 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.

Children
No data