287
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Movement Instructions
3
MVN/MVNL
Function
Example Programming
z MVN
MVN(022) inverts the bits in S and transfers
the result to D. The content of S is left
unchanged.
z MVNL
MVNL(499) inverts the bits in S+1 and S and
transfers the result to D+1 and D. The
contents of S+1 and S are left unchanged.
When CIO 0.00 is ON in the following
example, the status of the bits in CIO 100 is
inverted and the result is copied to D100.
When CIO 0.00 is ON in the following
example, the status of the bits in D101 and
D100 are inverted and the result is copied to
D201 and D200. (The original contents of
D101 and D100 are left unchanged.)
S+1
D+1
S
D
1 0
0 1
Bit status
inverted.
S
D
1 0
0 1
Bit status
inverted.
100
D100
D100
0.00
D100
D200
D100
D101
D200
D201
0.00