264
Shift Instructions
Section 5-17
CY:
Receives the data of bit 00.
EQ:
ON when the content of Wd is zero; otherwise OFF.
5-17-5 ROTATE LEFT – ROL(27)
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
Description
When the execution condition is OFF, ROL(27) is not executed. When the exe-
cution condition is ON, ROL(27) shifts all Wd bits one bit to the left, shifting
CY into bit 00 of Wd and shifting bit 15 of Wd into CY.
Precautions
Use STC(41) to set the status of CY or CLC(41) to clear the status of CY
before doing a rotate operation to ensure that CY contains the proper status
before executing ROL(27).
CY will be shifted into bit 00 every cycle if the undifferentiated form of ROL(27)
is used. Use the differentiated form (@ROL(27)) or combine ROL(27) with
DIFU(13) or DIFD(14) to shift just one time.
Flags
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 data of bit 15.
EQ:
ON when the content of Wd is zero; otherwise OFF.
5-17-6 ROTATE RIGHT – ROR(28)
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
Description
When the execution condition is OFF, ROR(28) is not executed. When the
execution condition is ON, ROR(28) shifts all Wd bits one bit to the right, shift-
ing CY into bit 15 of Wd and shifting bit 00 of Wd into CY.
Wd
:
Rotate word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
ROL(27)
Wd
@ROL(27)
Wd
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
0
CY
Bit
00
Bit
15
Wd
:
Rotate word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
ROR(28)
Wd
@ROR(28)
Wd
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
0
Bit
15
Bit
00
CY
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......