301
Data Shift Instructions Section 3-8
Operand Specifications
Description RRNL(577) shifts all bits of Wd and Wd +1 to the right (from leftmost bit to
rightmost bit) not including the Carry Flag (CY).
Flags
Precautions When RRNL(577) is executed, the Error Flag will turn OFF.
If as a result of the shift the contents of Wd and Wd +1 are zero, the Equals
Flag will turn ON.
If as a result of the shift the contents of the leftmost bit of Wd + 1 is 1, the Neg-
ative Flag will turn ON.
Note It is possible to set the Carry Flag contents to 1 or 0 immediately before exe-
cuting this instruction, by using the Set Carry (STC(040)) or Clear Carry
(CLC(041)) instructions.
Area Wd
CIO Area CIO 0 to CIO 6142
Work Area W0 to W510
Holding Bit Area H0 to H510
Auxiliary Bit Area A448 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D0 to D32766
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---
Data Registers ---
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Wd+1 Wd
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 ON when the leftmost bit is 1 as a result of the shift.
OFF in all other cases.