Syntax: LDR (or STR) <destination>,address
PC relative addressing is a pseudo-addressing mode as it is not a distinct addressing mode supported by the ARM. Instead, such instructions are converted into an appropriate pre-indexed instruction by the assembler.
The address is simply an absolute number, or an assembler label.
Examples:
LDR R0, &1000 ; Load word of memory from location &1000 into R0
STR R0, table ; Store R0 to word of memory specified by 'table'
It is important to remember that the range of the offset, as in pre-indexed addressing, is between -4096 and 4096.
|
|
|