
6.14 BYTE SWAP Instruction (BSWAP)
6-23
6.14 BYTE SWAP Instruction (BSWAP)
[Outline]
The BSWAP instruction swaps the higher-place and lower-place bytes of the designated register (Dest).
a
Upper Lower
After swap
bab
Before swap
VWxxxxx VWxxxxx
V=S, I, O, M, DUpper Lower
[Format]
Symbol : BSWAP
Full Name : Byte Swap
Category : MOVE
Icon :
[Parameter]
Parameter Name Setting
Dest · Any integer type register (except for # and C registers)
· Any integer type register with subscript (except for # and C registers)
[Program Example]
The upper and lower bytes of MW00100 to MW00102 are swapped.
Kommentare zu diesen Handbüchern