17.32 LDR (literal)

Load Register (literal).

Syntax

LDR Wt, label ; 32-bit

LDR Xt, label ; 64-bit

Where:

Wt
Is the 32-bit name of the general-purpose register to be loaded.
Xt
Is the 64-bit name of the general-purpose register to be loaded.
label
Is the program label from which the data is to be loaded. Its offset from the address of this instruction, in the range ±1MB.

Usage

Load Register (literal) calculates an address from the PC value and an immediate offset, loads a word from memory, and writes it to a register. For information about memory accesses, see Load/Store addressing modes in the ARM Architecture Reference Manual ARMv8, for ARMv8-A architecture profile.

Non-ConfidentialPDF file icon PDF versionARM 100069_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.