2.6.8.3.1 Syntax

SXTextend{cond} {Rd,} Rm {, ROR #n}

UXTextend{cond} {Rd}, Rm {, ROR #n}

where:

  • extend is one of:
    • B: Extends an 8-bit value to a 32-bit value.
    • H: Extends a 16-bit value to a 32-bit value.
  • cond is an optional condition code, see 2.6.3.7 Conditional Execution.
  • Rd is the destination register.
  • Rm is the register holding the value to extend.
  • ROR #n is one of:
    • ROR #8: Value from Rm is rotated right 8 bits.
    • ROR #16: Value from Rm is rotated right 16 bits.
    • ROR #24: Value from Rm is rotated right 24 bits.
    • If ROR #n is omitted, no rotation is performed.