
Chapter 5. Application instructions
5-3
5.1.2
CMOV, CMOVP, DCMOV, DCMOVP
CMOV
(Complement move)
FUN(84) CMOV
FUN(86) D
CMOV
FUN(85) CMOVP
FUN(87) D
CMOCP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O O O* O O O
O
O
O
CMOV(P)
DCMOV(P)
O O O O
*
O
O
O
O
5/7
O
* Available only when do not use computer link module or data link module
1) Functions
-
CMOV(P) : Reverses the 16-bits data of [ S ] per bit and transfers the result to [ D ].
-
DCMOV(P) : Reverses the 32-bits data of [ S+1, S ] per bit and transfers the result to [ D+1, D ].
Operand setting
D
S
CMOV
CMOVP
DCMOV
DCMOVP
S
D
S
D
The source device at which
the data to be transferred is
stored.
The device at which the
reversed result is stored
D
S
16 bits
D
S
0
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
Reverse
16 bits
0
1
1
0 0 1
0
1
0
0
1 1 0
1
D
S
16 bits
0 1
1
0 0 1
0
1
0
0
1 1 0
1
+ 1
D
S + 1
Reverse
Reverse