Data Movement Instructions
7-17-5 DATA EXCHANGE – XCHG(73)
Limitations
Description
Flags
7-17-6 SINGLE WORD DISTRIBUTE – DIST(80)
Limitations
Description
Single-word Distribution
Ladder Symbols
XCHG(73)
E1
E2
DM 6144 to DM 6655 cannot be used for E1 or E2.
When the execution condition is OFF, XCHG(73) is not executed. When the
execution condition is ON, XCHG(73) exchanges the content of E1 and E2.
If you want to exchange content of blocks whose size is greater than 1 word, use
work words as an intermediate buffer to hold one of the blocks using XFER(70)
three times.
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
Ladder Symbols
DIST(80)
S
DBs
C
C must be BCD.
DM 6144 to DM 6655 cannot be used for DBs or C.
DIST(80) can be used for single-word distribution or for a stack operation de-
pending on the content of the control word, C.
When bits 12 to 15 of C=0 to 8, DIST(80) can be used for a single word distribute
operation. The entire contents of C specifies an offset, Of (0000 to 2047 in BCD).
When the execution condition is OFF, DIST(80) is not executed. When the
execution condition is ON, DIST(80) copies the content of S to DBs+Of, i.e., Of is
added to DBs to determine the destination word.
Note
1. DBs and DBs+Of must be in the same data area and cannot be between
DM 6144 and DM 6655.
2. IR 000 to IR 019 or IR 000 to IR 049 is treated as a different memory area
from IR 200 to IR 255 for the source data area. The entire source data area
must be within one or the other of these areas. An error will occur if words
from both areas are included.
@XCHG(73)
E1
E2
E1
@DIST(80)
S
DBs
C
Section
Operand Data Areas
E1: Exchange word 1
IR, SR, AR, DM, HR, TC, LR
E2: Exchange word 2
IR, SR, AR, DM, HR, TC, LR
E2
Operand Data Areas
S: Source data
IR, SR, AR, DM, HR, TC, LR, #
DBs: Destination base word
IR, SR, AR, DM, HR, TC, LR
C: Control word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
7-17
415
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?