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

What is the effect of LDR r0, [r5, r6, LSL r2]

It's actually written like this: LDR r0, [r5, r6, LSL r2]...The first r0 is bolded. What does that mean (if anything)? Is there also a difference if it's written as "R0" instead of "r0"? My textbook is not very good at explaining this stuff.

Parents
  • The first r0 is bolded. What does that mean (if anything)?

    Bold has no significance.

    Is there also a difference if it's written as "R0" instead of "r0"?

    The ARM specification uses lowercase letters, but I've seen some tools accept upper-case. It has no syntactic meaning.

    In terms of the encoding the effect is to load r0 with the 32-bit value stored at the address (r5 + (r6 << r2)).

    HTH,
    Pete

Reply
  • The first r0 is bolded. What does that mean (if anything)?

    Bold has no significance.

    Is there also a difference if it's written as "R0" instead of "r0"?

    The ARM specification uses lowercase letters, but I've seen some tools accept upper-case. It has no syntactic meaning.

    In terms of the encoding the effect is to load r0 with the 32-bit value stored at the address (r5 + (r6 << r2)).

    HTH,
    Pete

Children