289
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Movement Instructions
3
MOVB
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.
Example Programming
When CIO 0.00 is ON in the following example, the 5
th
bit of the source word (CIO 200) is copied to the
12
th
bit of the destination word (CIO 300) 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.
0 C 0 5
D:300
S:200
C:D200
200
D200
300
0.00