Omron CS1G/H-CPUxxH Instructions Manual page 363

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Data Shift Instructions
Description
Flags
Precautions
Examples
342
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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).
Name
Label
Error Flag
ER
Carry Flag
CY
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.
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).
D
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
#0000 to #000F
(binary) or &0 to
&15
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Shifts one bit to the left
N−1 bit
N−1 bit
Operation
ON when C data is not between 0000 and 000F Hex.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
Section 3-9
C
N
#0000 to #FFFF
(binary) or &0 to
&65535

Advertisement

Table of Contents
loading

Table of Contents