MicroBlaze Processor Reference Guide
251
UG081 (v14.7)
Instructions
swapb
Swap Bytes
Description
Swaps the contents of register rA treated as four bytes, and places the result in rD. This effectively
converts the byte sequence in the register between endianness formats, either from little-endian to
big-endian or vice versa.
Pseudocode
(rD)[24:31]
←
(rA)[0:7]
(rD)[16:23]
←
(rA)[8:15]
(rD)[8:15]
←
(rA)[16:23]
(rD)[0:7]
←
(rA)[24:31]
Registers Altered
•
rD
Latency
•
1 cycle
Note
This instruction is only valid if MicroBlaze is configured to use reorder instructions
(
C_USE_REORDER_INSTR = 1
).
swapb
rD, rA
1 0 0 1 0 0
rD
rA
0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0
0
6
1
1
1
6
3
1
Содержание MicroBlaze
Страница 1: ...MicroBlaze Processor Reference Guide Embedded Development Kit EDK 14 7 UG081 v14 7...
Страница 4: ...MicroBlaze Processor Reference Guide www xilinx com UG081 v14 7...
Страница 8: ...8 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Chapter 1 Introduction Send Feedback...
Страница 262: ...262 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Send Feedback...