3. Instructions
Function
RRNC
RRNC(575) shifts all bits of Wd to the right
(from leftmost bit to rightmost bit) not
including the Carry Flag (CY). The contents
of the rightmost bit of Wd shifts to the
leftmost bit and to the Carry Flag (CY).
RRNL
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). The
contents of the rightmost bit of Wd +1 is
shifted to the leftmost bit of Wd, and to the
Carry Flag (CY).
Sample program
When CIO 0.00 is ON, word CIO 100 will
shift one bit to the right (excluding the Carry
Flag (CY)). The contents of CIO 100.00 will
be shifted to CIO 100.15.
0.00
Wd
Wd: CIO 100
318
Instruction executed once
CY
Wd
Wd+1
When CIO 0.00 is ON, words CIO 100 and CIO 101
will shift one bit to the right, (excluding the Carry Flag
(CY)). The contents of CIO 100.00 will be shifted to
CIO 101.15.
0.00
Wd
Wd+1: CIO 101
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Wd
Wd: CIO 100
Instruction executed once
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers