IDEC MicroSmart User Manual
Page 221
![background image](/manuals/350368/221/background.png)
9: M
OVE
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
9-3
Repeat Bit Operands
The MOV (move) instruction moves 16-bit data. When a bit operand such as input, output, internal relay, or shift register is
designated as the source or destination operand, 16 bits starting with the one designated by S1 or D1 are the target data. If
a repeat operation is designated for a bit operand, the target data increases in 16-bit increments.
Overlapped Operands by Repeat
If the repeat operation is designated for both the source and destination and if a portion of the source and destination areas
overlap each other, then the source data in the overlapped area is also changed.
111
D11
110
D10
112
D12
M20 through M27, M30 through M37
M0 through M7, M10 through M17
M40 through M47, M50 through M57
Source (Repeat = 0)
Destination (Repeat = 3)
I10
REP
3
S1 –
D10
D1 R
M0
MOV(W)
2
D11
1
D10
3
D12
4
D13
D14
D15
2
D11
1
D10
1
D12
2
D13
1
D14
2
D15
Before Execution
Source:
D10 through D13 (Repeat = 4)
Destination: D12 through D15 (Repeat = 4)
I12
REP
4
S1 R
D10
D1 R
D12
MOV(W)
SOTU
After Execution