5.15 BSWAP (High /Low Byte in n Block Exchange)
■
Ladder diagram
■
List of operands
Operand Description
S The starting address of the device to exchange the high and low bytes
n The number of words to exchange the high and low bytes
D Device address of destination of the exchanged data
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S ● ● ● ● ● ● ● ● ●
n ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Integer constants cannot be specified.)
■
Outline of operation
● This instruction exchanges the high byte and low byte for [n] words from the device address
specified by [S], and transfers it to the area starting from [D].
● The maximum number of exchanged words is 65535.
● When [n] is 0, no operation is performed.
■
Processing
Example) Operation unit: 16 bits (US, SS)
5.15 BSWAP (High /Low Byte in n Block Exchange)
5-34 WUME-FP7CPUPGR-12