User guide
Using Data Handling Instructions
9–17
Operation
When
the rung containing this instruction is true, data at the source address passes
through the mask to the destination address. See the following figure.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
B3:2 before move
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
source B3:0
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
Mask F0F0
0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1
B3:2 after move
MVM
MASKED MOVE
Source B3:0
Mask F0F0
Dest B3:2
Mask
data by setting bits in the mask to zero; pass data by setting bits in the mask to
one. The mask can be a constant value, or you can vary the mask by assigning a
direct address. Bits in the destination that corr
espond to zer
os in the mask ar
e not
altered.
Programming