LDR (CODE16)
In this section:
Syntax
LDRregister,=expression1
or
LDRregister,expression2
Parameters
| The register to load. |
| Any 32-bit expression. |
| A program location counter-relative expression +4 to +1024 from the program location counter. |
Description
As in Arm mode, the first form of the LDR pseudo-instruction in Thumb mode loads a register with any 32-bit expression. Note that the first form can be translated into a MOVS instruction, which modifies the program status register.
The second form of the instruction reads a 32-bit value from an address specified by the expression. However, the offset from the program location counter to the constant must be positive and less than 1 Kbyte.