Omron CS1G/H-CPUxxH Instructions Manual page 370

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
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
NSLL(582) shifts D and D+1 (the shift words) by the specified number of
binary bits (specified in C) to the left (from the rightmost bit to the leftmost bit).
Either zeros or the value of the rightmost bit will be placed into the specified
number of bits of the shift word starting from the rightmost bit.
Lost
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
For any bits which are shifted outside the specified word, the contents of the
last bit is shifted to the Carry Flag (CY), and all other data is lost.
When the number of bits to shift (specified in C) is "0," the data will not be
shifted. The appropriate flags will turn ON and OFF, however, according to
data in the specified word.
When the contents of the control word C are out of range, an error will be gen-
erated and the Error Flag will turn ON.
If as a result of the shift the contents of D is 0000, the Equals Flag will turn
ON.
If as a result of the shift the contents of the leftmost bit of D, D +1 is 1, the
Negative Flag will turn ON.
When CIO 000000 is ON, CIO 0100 and CIO 0101 will be shifted to the left
(from the rightmost bit to the leftmost bit) by 10 bits. The number of bits to shift
D
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Shift n-bits
N bits
Operation
ON when the control word C (the number of bits to shift) is
not within range.
OFF in all other cases.
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.
Section 3-9
C
Specified values only
DR0 to DR15
Contents of "a" or "0" shifted in
349

Advertisement

Table of Contents
loading

Table of Contents