Omron CS1G/H-CPUxxH Instructions Manual page 368

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

Advertisement

Data Shift Instructions
Precautions
Examples
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 is 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 Hex, the Equals Flag will
turn ON.
If as a result of the shift the contents of the leftmost bit of D is 1, the Negative
Flag will turn ON.
When CIO 000000 is ON, The contents of CIO 0100 is shifted 10 bits to the
left (from the rightmost bit to the leftmost bit). The number of bits to shift is
specified in bits 0 to 7 of word CIO 0300 (control data). The contents of bit 0 of
CIO 0100 is copied into bits from which data was shifted and the contents of
the rightmost bit which was shifted out of range is shifted into the Carry Flag
(CY). All other data is lost.
15
12
11
C
8
0
Data shifted into register
8 Hex: Contents of rightmost bit shifted in
8
7
4
3
0
0
A
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Lost
No. of bits to shift: 10 bits
(Contents of the rightmost
bit is inserted.)
Section 3-9
Rightmost bit
347

Advertisement

Table of Contents
loading

Table of Contents