179
5-14-17DOUBLE ROTATE LEFT: ROLL(066)
(066)
ROLL Wd
Wd: Word CIO, G, A, DM
Operand Data AreaLadder Symbol
Variations
j ROLL(066)
When the execution condition is OFF, ROLL(066) is not executed. When the ex-
ecution condition is ON, ROLL(066) shifts CY into bit 00 of Wd, all bits previously
in Wd and Wd+1 are shifted to the left, and bit 15 of Wd+1 is shifted into CY.
Wd+1
WdCY
Use STC(078) to set CY to 1 or CLC(079) to set CY to 0 if necessary before do-
ing a rotate operation to ensure that CY contains the proper status before ex-
ecuting ROLL(066).
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
CY (A50004): Receives the status of bit 15 from Wd+1.
EQ (A50006): Content of Wd and Wd+1 are 0 after execution.
N (A50008): Same status as bit 15 of Wd+1 after execution.
Example When CIO 000000 is ON in the following example, the status of CY is shifted into
bit 00 of CIO 0100, the status of all bits within CIO 0100 are shifted left one posi-
tion, the status of bit 15 of CIO 0100 is shifted to bit 00 of CIO 0101, the status of
all bits within CIO 0101 are shifted left one position, and the status of bit 15 is
shifted to CY.
Address Instruction Operands
00000 LD 000000
00001 ROLL(066)
0100
1 0 0 0 1 1 1 0
0
CY LSBMSB
0 0 0 1 1 1 0 0
1
CY LSBMSB
0 0 1 0 1 0 0 1
0 1 0 0 0 1 1 0
LSBMSB
LSBMSB
Wd+1: CIO 0101 Wd: CIO 0100
Wd+1: CIO 0101 Wd: CIO 0100
Description
Precautions
Shift Instructions Section 5-14
0000
00
(066)
ROLL 0100