REVW

Endian conversion

REVW

REVerse Word data


[Syntax]

REVW src, dest

 

[Operation]

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

 

[Function]

-

This instruction converts the endian byte order within the higher- and lower-order 16-bit data, which are specified by src, and saves the result in dest.

 

[Instruction Format]

Syntax

src

dest

Code size

(Byte)

REVW src, dest

Rs

Rd

3

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

REVW R1, R2