Thumb Instruction Reference

To load a program-relative or external address into a register. The address remains valid regardless of where the linker places the ELF section containing the LDR.

Example

LDR

r1,

=0xfff

;

loads

0xfff into r1

LDR

r2,

=labelname

;

loads

the address of labelname into r2

5-42

Copyright © 2000, 2001 ARM Limited. All rights reserved.

ARM DUI 0068B

Page 236
Image 236
ARM VERSION 1.2 manual =labelname