You copied the Doc URL to your clipboard.

16.148 UBFX

Unsigned Bitfield Extract.

This instruction is an alias of UBFM.

Syntax

UBFX Wd, Wn, #lsb, #width ; 32-bit general registers

Equivalent to UBFM Wd, Wn, #lsb, #(lsb+width-1).

UBFX Xd, Xn, #lsb, #width ; 64-bit general registers

Equivalent to UBFM Xd, Xn, #lsb, #(lsb+width-1).

Where:

Wd

Is the 32-bit name of the general-purpose destination register.

Wn

Is the 32-bit name of the general-purpose source register.

lsb

Depends on the instruction variant:

32-bit general registers

Is the bit number of the lsb of the source bitfield, in the range 0 to 31.

64-bit general registers

Is the bit number of the lsb of the source bitfield, in the range 0 to 63.

width

Depends on the instruction variant:

32-bit general registers

Is the width of the bitfield, in the range 1 to 32-lsb.

64-bit general registers

Is the width of the bitfield, in the range 1 to 64-lsb.

Xd

Is the 64-bit name of the general-purpose destination register.

Xn

Is the 64-bit name of the general-purpose source register.

Usage

Unsigned Bitfield Extract extracts any number of adjacent bits at any position from a register, zero-extends them to the size of the register, and writes the result to the destination register.

Was this page helpful? Yes No