You copied the Doc URL to your clipboard.

ARM Compiler armasm User Guide : LDR (literal)

LDR (literal)

Load Register (literal).

Syntax

LDR Wt, label ; 32-bit general registers

LDR Xt, label ; 64-bit general registers

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 ARMv8-A Architecture Reference Manual.

Was this page helpful? Yes No