![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414424.webp)
7-16
Section
Shift Instructions
406
When the execution condition is OFF, ASL(25) is not executed. When the execu-
tion 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.
1 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1
CY
Bit
00
Bit
15
0
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.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
CY:
Receives the status of bit 15.
EQ:
ON when the content of Wd is zero; otherwise OFF.
7-16-4
ARITHMETIC SHIFT RIGHT – ASR(26)
Wd
: Shift word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
ASR(26)
Wd
@ASR(26)
Wd
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
When the execution condition is OFF, ASR(25) is not executed. When the
execution 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.
1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
1
Bit
00
Bit
15
CY
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.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
CY:
Receives the data of bit 00.
EQ:
ON when the content of Wd is zero; otherwise OFF.
7-16-5
ROTATE LEFT – ROL(27)
Wd
: Rotate word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
ROL(27)
Wd
@ROL(27)
Wd
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
Description
Precautions
Description
Precautions