You copied the Doc URL to your clipboard.

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 Arm®v8, for Arm®v8‑A architecture profile.

Was this page helpful? Yes No