Shift Instructions
5-17-3 ARITHMETIC SHIFT LEFT – ASL(25)
Limitations
Description
Precautions
Flags
5-17-4 ARITHMETIC SHIFT RIGHT – ASR(26)
Limitations
Description
Precautions
Flags
Ladder Symbols
ASL(25)
@ASL(25)
Wd
DM 6144 to DM 6655 cannot be used for Wd.
When the execution condition is OFF, ASL(25) is not executed. When the exe-
cution condition is ON, ASL(25) shifts a 0 into bit 00 of Wd, shifts the bits of
Wd one bit to the left, and shifts the status of bit 15 into CY.
Bit
15
CY
1 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1
A 0 will be shifted into bit 00 every cycle if the undifferentiated form of ASL(25)
is used. Use the differentiated form (@ASL(25)) or combine ASL(25) with
DIFU(13) or DIFD(14) to shift just one time.
ER:
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.)
CY:
Receives the status of bit 15.
EQ:
ON when the content of Wd is zero; otherwise OFF.
Ladder Symbols
ASR(26)
@ASR(26)
Wd
DM 6144 to DM 6655 cannot be used for Wd.
When the execution condition is OFF, ASR(25) is not executed. When the exe-
cution condition is ON, ASR(25) shifts a 0 into bit 15 of Wd, shifts the bits of
Wd one bit to the right, and shifts the status of bit 00 into CY.
Bit
15
1
1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
0
A 0 will be shifted into bit 15 every cycle if the undifferentiated form of
ASR(26) is used. Use the differentiated form (@ASR(26)) or combine
ASR(26) with DIFU(13) or DIFD(14) to shift just one time.
ER
: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.)
IR, SR, AR, DM, EM, HR, LR
Wd
IR, SR, AR, DM, EM, HR, LR
Wd
Section 5-17
Operand Data Areas
Wd: Shift word
Bit
00
0
Operand Data Areas
Wd: Shift word
Bit
CY
00
0
263
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?