Data Movement Instructions
00000
Flags
7-17-8 MOVE BIT – MOVB(82)
Limitations
When IR 00000 goes from OFF to ON, COLL(81) copies the content of DM 0005
(DM 0000 + 5) to IR 001. The content of the stack pointer (DM 0000) is then de-
cremented by one.
@COLL(81)
DM 0000
216
001
IR 216
8005
Stack pointer
DM 0000
0005
decremented
DM 0001
AAAA
DM 0002
BBBB
DM 0003
CCCC
DM 0004
DDDD
DM 0005
EEEE
ER:
The offset or stack length in the control word is not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
During stack operation, the value of the stack pointer exceeds the
length of the stack; an attempt was made to write to a word beyond the
end of the stack.
EQ:
ON when the content of S is zero; otherwise OFF.
Ladder Symbols
MOVB(82)
@MOVB(82)
S
Bi
D
The rightmost two digits and the leftmost two digits of Bi must each be between
00 and 15.
DM 6144 to DM 6655 cannot be used for Bi or D.
Address Instruction
00000
LD
00001
@COLL(81)
DM 0000
0004
DM 0001
AAAA
DM 0002
BBBB
DM 0003
CCCC
DM 0004
DDDD
DM 0005
EEEE
Operand Data Areas
IR, SR, AR, DM, HR, LR, #
Bi: Bit designator (BCD)
S
IR, SR, AR, DM, HR, TC, LR, #
Bi
D
IR, SR, AR, DM, HR, LR
Section
7-17
Operands
00000
DM
0000
216
001
IR 001
EEEE
S: Source word
D: Destination word
419
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers