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

Meaning of str r3, [r0]!

What happened of r0 after the execution of the above assembly code ?

Parents
  • Hello, which toolchain did you use to generate this instruction? The Arm assembler does not accept it.

    The "!" notation usually implies "increment-after", and so I may _guess_ that this is attempting to implement the instruction:

    str r3, [r0] #4

    adding 4 (word=4 bytes) to r0, after writing r3 to the original address pointed to by r0.

Reply
  • Hello, which toolchain did you use to generate this instruction? The Arm assembler does not accept it.

    The "!" notation usually implies "increment-after", and so I may _guess_ that this is attempting to implement the instruction:

    str r3, [r0] #4

    adding 4 (word=4 bytes) to r0, after writing r3 to the original address pointed to by r0.

Children
No data