REVL

Endian conversion

REVL

REVerse Longword data


[Syntax]

REVL src, dest

 

[Operation]

Rd = { Rs[7:0], Rs[15:8], Rs[23:16], Rs[31:24] }

 

[Function]

-

This instruction converts the endian byte order within a 32-bit datum, which is specified by src, and saves the result in dest.

 

[Instruction Format]

Syntax

Operand

Code Size

(Byte)

src

dest

REVL src, dest

Rs

Rd

3

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

REVL R1, R2