Omron CS1G/H-CPUxxH Instructions Manual page 365

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
344
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
NSFR(579) 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
right (towards the rightmost word and the rightmost bit). "0" will be placed into
the beginning bit and the contents of the rightmost bit in the shift area will be
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 2 to end of the shift
data length 11 bits (B hex), will be shifted one bit to the right , (from the left-
most bit to the rightmost bit). "0" is shifted into bit 12 of CIO 0100. The con-
tents of the rightmost bit in the shift area (bit 2 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)
*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 right
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