2 Instructions
2-112
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
The same word can be specified for both S and D to copy a bit within a word.
Precautions
The other bits in the destination word are left unchanged.
Sample program
When CIO 0.00 is ON in the following example, the 5
th
bit of the source word (W0) is copied to the 12
th
bit of the destination word (W100) in accordance with the control word’s value of 0C05.
MOVB(082) copies the specified bit (n) from S
to the specified bit (m) in D.
Cm n
S
n
D
m
MOVB
W0
D200
W100
0.00
S
C
D
D:W100
011415
S:W0
0151415
C:D200
0C 05
07
8
78
78
15
12