266
Data Movement Instructions Section 3-7
Description XCHG(073) exchanges the contents of E1+1 and E1 with the contents of
E2+1 and E2.
To exchange 3 or more words, use XFER(070) to transfer the words to a third
set of words (a buffer) as shown in the following diagram.
Flags There are no flags affected by this instruction.
Example When CIO 0.01 is ON in the following example, the contents of D100 and
D101 are exchanged with the contents of D200 and D201.
Index Registers IR0 to IR15
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Area E1 E2
E2E1 E1+1 E2+1
E2
E1
Buffer
1
st
XFER(070)
operation
2
nd
XFER(070)
operation
3
rd
XFER(070)
operation
0.01
D100
D200
D100
D101
D100
D101
D200
D201
D200
D201