You copied the Doc URL to your clipboard.

PUSH

Push registers onto a full descending stack.

Syntax

PUSH{cond} reglist

where:

cond

is an optional condition code.

reglist

is a non-empty list of registers, enclosed in braces. It can contain register ranges. It must be comma separated if it contains more than one register or register range.

Operation

PUSH is a synonym for STMDB sp!, reglist. PUSH is the preferred mnemonic.

Note

STMFD is a synonym of STMDB.

Registers are stored on the stack in numerical order, with the lowest numbered register at the lowest address.

T32 instructions

The following restriction applies to the 16-bit PUSH instruction:

  • reglist can only include the Lo registers and the LR.

The following restrictions apply to the 32-bit PUSH instruction:

  • reglist must not include the SP.
  • reglist must not include the PC.

Restrictions on reglist in A32 instructions

The A32 PUSH instruction can have SP and PC in the reglist but the instruction that includes SP or PC in the reglist is deprecated.

Examples

    PUSH    {r0,r4-r7}
    PUSH    {r2,lr}
Was this page helpful? Yes No