![Omron CJ1G-CPUxx Instructions Manual Download Page 363](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491363.webp)
342
Data Shift Instructions
Section 3-9
Description
NSFL(578) shifts the specified number of bits by the shift data length (N) from
the beginning bit (C) in the rightmost word, as designated by D one bit to the
left (towards the leftmost word and the leftmost bit). “0” is place into the begin-
ning bit and the contents of the leftmost bit in the shift area are shifted to the
Carry Flag (CY).
Flags
Precautions
When the shift data length (N) is 0, the contents of the beginning bit will be
copied to the Carry Flag (CY), and its contents will not be changed.
Only the bits shifted into rightmost word in the shift area (i.e. leftmost word
data) will be changed.
Examples
When CIO 000000 is ON, all bits from the beginning bit 3 to the shift data
length (B hex) will be shifted one bit to the left (from the rightmost bit to the
leftmost bit). “0” will be placed into bit 3 of CIO 0100. The contents of the left-
most bit in the shift area (bit 13 of CIO 0100) are copied into the Carry Flag
(CY).
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
#0000 to #000F
(binary) or &0 to
&15
#0000 to #FFFF
(binary) or &0 to
&65535
Data Registers
---
DR0 to DR15
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
Area
D
C
N
N
−
1 bit
Shifts one bit to the left
N
−
1 bit
Name
Label
Operation
Error Flag
ER
ON when C data is not between 0000 and 000F Hex.
OFF in all other cases.
Carry Flag
CY
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...