287
Data Shift Instructions Section 3-8
Description ASR(026) shifts the contents of Wd one bit to the right (from leftmost bit to
rightmost bit). “0” will be placed in the leftmost bit and the contents of the
rightmost bit will be shifted into the Carry Flag (CY).
Flags
Precautions When ASR(026) is executed, the Error Flag and the Negative Flag will turn
OFF.
If as a result of the shift the contents of Wd is zero, the Equals Flag will turn
ON.
Examples When CIO 0.00 is ON, word CIO 1000 will shift one bit to the right. “0” will be
placed in CIO 1000.15 and the contents of CIO 1000.00 will be shifted to the
Carry Flag (CY).
3-8-8 DOUBLE SHIFT RIGHT: ASRL(571)
Purpose Shifts the contents of Wd and Wd +1 one bit to the right.
Ladder Symbol
Variations
Applicable Program Areas
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the shift result is 0.
OFF in all other cases.
Carry Flag CY ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
Negative Flag N OFF
0.00
1000
Wd: CIO 1000
Wd
ASRL(571)
Wd: Word
Wd
Variations Executed Each Cycle for ON Condition ASRL(571)
Executed Once for Upward Differentiation @ASRL(571)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK