rev16

Reverse Bytes Halfword (Thumb)

REV16 <Rd>, <Rm>

Reverse bytes in halfwords (Thumb).

Details

The Reverse Bytes Halfword instruction reverse bytes in halfwords (Thumb).

Pseudocode Operation

Rd ← byte-reverse of Rm

Example

REV16 r0, r2

Encoding

Binary Layout
1011101001
Rm
Rd
 
Format Thumb Data Proc
Opcode 0xBA40
Extension T32 (Thumb)

Operands

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