Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 358

Table of Contents

Advertisement

3. Instructions
Function
ROR
ROR(028) shifts all bits of Wd including the
Carry Flag (CY) to the right (from leftmost bit
to rightmost bit).
RORL
RORL(573) shifts all bits of Wd and Wd +1
including the Carry Flag (CY) to the right
(from leftmost bit to rightmost bit).
Hint
It is possible to set the Carry Flag contents to 1 or 0 immediately before executing this instruction, by
using the Set Carry (STC(040)) or Clear Carry (CLC(041)) instructions.
Example Programming
When CIO 0.00 is ON, word CIO 100 and the
Carry Flag (CY) will shift one bit to the right.
The contents of CIO 100.00 will be shifted to
the Carry Flag (CY) and the Carry Flag
contents will be shifted to CIO 100.15.
0.00
Wd
Wd: CIO 100
322
Instruction executed once
Wd
Wd+1
When CIO 0.00 is ON, word CIO 100, CIO 101 and
the Carry Flag (CY) will shift one bit to the right. The
contents of CIO 101.00 will be shifted to the Carry
Flag (CY) and the Carry Flag contents 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

Advertisement

Table of Contents
loading

Table of Contents