rev
Reverse Bytes (Thumb)
REV <Rd>, <Rm>
Reverses bytes (Endian swap).
Details
The Reverse Bytes instruction reverses bytes (Endian swap).
Pseudocode Operation
Rd ← byte-reverse of Rm
Example
REV r0, r2
Encoding
Binary Layout
111110101001
Rm
1111
Rd
1000
Operands
-
Rd
Destination general-purpose register -
Rm
Second source / offset general-purpose register