Microcontroller User's Manual

2-30 MCF5282 User’s Manual MOTOROLA
ColdFire Instruction Set Architecture Enhancements
BYTEREV Byte Reverse Register BYTEREV
(Supported Starting with ISA A+)
Operation: Byte Reversed Dx Dx
Assembler Syntax: BYTEREV.L Dx
Attributes: Size = longword
The contents of the destination data register are byte-reversed as defined below:
Condition Codes: Not affected
Instruction Field:
Register field—Specifies the destination data register, Dx.
Instruction
Format:
1514131211109876543210
0000001011000 Register, Dx
new Dx[31:24] = old Dx[7:0]
new Dx[23:16] = old Dx[15:8]
new Dx[15:8] = old Dx[23:16]
new Dx[7:0] = old Dx[31:24]
BYTEREV V2, V3 Core (ISA_A) V4 Core (ISA_B) V2 Core (ISA_A+)
Opcode present No No Yes