sxtb

Signed Extend Byte (A32)

SXTB<c> <Rd>, <Rm> {, <rotation>}

Sign-extends the low byte (8-bits) to 32-bits.

Details

The Signed Extend Byte instruction sign-extends the low byte (8-bits) to 32-bits.

Pseudocode Operation

Rd ← sign/zero-extend(Rm)

Example

SXTB r0, r2

Encoding

Binary Layout
cond
01101010
1111
Rd
rot
0111
Rm
 
Format Data Proc
Opcode 0x06AF0070
Extension A32 (Base)

Operands

  • Rd
    Destination general-purpose register
  • Rm
    Second source / offset general-purpose register