ARM VERSION 1.2 User Manual

Page 236

Advertising
background image

Thumb Instruction Reference

5-42

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

ARM DUI 0068B

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

Advertising