8.16 CMPW (Data Table Shift-In and Compress)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ● ●
■
List of operands
Operand Description
S Write data
D1 Starting address of the buffer
D2 End address of the buffer
■
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
(N
ote
2)
K
(N
ote
3)
U
(N
ote
4)
H SF
D
F
" "
S ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
D1 ● ● ● ● ● ● ●
D2 ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices and integer constants can be modified.
(Note 2) Index register (I0 to IE)
(Note 3) Can be specified only when the operation unit is signed integer (SS).
(Note 4) Can be specified only when the operation unit is an unsigned integer (US).
■
Outline of operation
● According to the operation unit of [n], the instruction transfers [S] to [D1], and compresses
the areas specified by [D1] to [D2].
● The data in the specified area, excluding 0, are allocated in descending order from the higher
address of the specified area, and the remaining area is cleared to zero.
8.16 CMPW (Data Table Shift-In and Compress)
8-32 WUME-FP7CPUPGR-12