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

LDR Register Assignment

Note: This was originally posted on 22nd February 2012 at http://forums.arm.com

Here I'm doing basic assignments and read write routines for
verfication:


ldr r1, StartRegs
  ...
  StartRegs: .word 0x00000989

This code worked fine, but a few lines down the program I try
to assign r4 a value just like StartRegs.  Instead of being able to
use the same format in the previous code I posted, it was neccessary
to use this format:


  ldr  r4, =EndRegs

  ...

  EndRegs:   .word   0xFFFFFFFF


If I didn't use the "=" operator, r4 was never stored with anything.  My question
is why did I have to use the "=" operator in one part of the code as opposed to
another part of the code?
Parents Reply Children
No data