Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 331

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Shift Instructions
Description
Flags
Precautions
Examples
298
Area
Index Registers
Indirect addressing
using Index Registers
RLNL(576) shifts all bits of Wd and Wd +1 to the left (from rightmost bit to left-
most bit). The contents of the leftmost bit of Wd +1 is shifted to the rightmost
bit of Wd, and to the Carry Flag (CY).
Wd+1
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
When RLNL(576) 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.
When CIO 0.01 is ON, word CIO 1100 and CIO 1101 will shift one bit to the
left (excluding the Carry Flag (CY)). The contents of CIO 1101.15 will be
shifted to CIO 1100.00.
0.01
1100
Wd
Wd+1: CIO 1101
1
---
,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
Operation
OFF
ON when the shift result is 0.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
ON when the leftmost bit is 1 as a result of the shift.
OFF in all other cases.
Wd: CIO 1100
Instruction executed once
Section 3-8
Wd

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents