You copied the Doc URL to your clipboard.

ARM Compiler armasm User Guide : STR (immediate)

STR (immediate)

Store Register (immediate).

Syntax

STR Wt, [Xn|SP], #simm ; 32-bit general registers, Post-index

STR Xt, [Xn|SP], #simm ; 64-bit general registers, Post-index

STR Wt, [Xn|SP, #simm]! ; 32-bit general registers, Pre-index

STR Xt, [Xn|SP, #simm]! ; 64-bit general registers, Pre-index

STR Wt, [Xn|SP{, #pimm}] ; 32-bit general registers

STR Xt, [Xn|SP{, #pimm}] ; 64-bit general registers

Where:

Wt

Is the 32-bit name of the general-purpose register to be transferred.

simm

Is the signed immediate byte offset, in the range -256 to 255.

Xt

Is the 64-bit name of the general-purpose register to be transferred.

pimm

Depends on the instruction variant:

32-bit general registers

Is the optional positive immediate byte offset, a multiple of 4 in the range 0 to 16380, defaulting to 0.

64-bit general registers

Is the optional positive immediate byte offset, a multiple of 8 in the range 0 to 32760, defaulting to 0.

Xn|SP

Is the 64-bit name of the general-purpose base register or stack pointer.

Usage

Store Register (immediate) calculates an address from a base register value and an immediate offset, and stores a 32-bit word or a 64-bit doubleword to the calculated address, from 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