271
Data Movement Instructions Section 5-18
Example The following example shows @MVN(22) being used to copy the complement
of #F8C5 to DM 0010 when IR 00001 goes from OFF to ON.
5-18-3 BLOCK TRANSFER – XFER(70)
Limitations S and S+N must be in the same data area, as must D and D+N.
DM 6144 to DM 6655 cannot be used for D.
Description When the execution condition is OFF, XFER(70) is not executed. When the
execution condition is ON, XFER(70) copies the contents of S, S+1, ..., S+N
to D, D+1, ..., D+N.
Flags ER: N is not BCD.
S and S+N or D and D+N are not in the same data area.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
@MVN(22)
#F8C5
DM 0010
00001
Address Instruction Operands
00000 LD 00001
00001 @MOV(21)
# F8C5
DM 0010
0 0 0 0 0 1 1 1 0 0 1 1 0 1 0
DM 0010
1 1 1 1 1 0 0 0 1 1 0 0 1 0 1
#F8C5
0
1
N: Number of words (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
S: Starting source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
D: Starting destination word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
XFER(70)
N
S
D
@XFER(70)
N
S
D
2
D
3 4 5
1
D+1
3 4 5
2
D+2
3 4 2
2
D+N
6 4 5
2
S
3 4 5
1
S+1
3 4 5
2
S+2
3 4 2
2
S+N
6 4 5