Omron CS1G/H-CPUxxH Instructions Manual page 376

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

Advertisement

Data Shift Instructions
Examples
No. of bits to shift: 10 bits
(Contents of the leftmost
bit is inserted.)
If as a result of the shift the contents of D +1 is 00000000 Hex, the Equals
Flag will turn ON.
If as a result of the shift the contents of the leftmost bit of D +1 is 1, the Nega-
tive Flag will turn ON.
When CIO 000000 is ON, CIO 0100 and CIO 0101 will be shifted 10 bits to
the right (from the leftmost bit to the rightmost bit). The number of bits to shift
is specified in bits 0 to 7 of word CIO 0300 (control data). The contents of bit
15 of CIO will be copied into the bits from which data was shifted and the con-
tents of the leftmost bit of data which was shifted out of range will be shifted
into the Carry Flag (CY). All other data is lost.
15
C
8
Leftmost bit
12
11
8
7
4
3
0
0
A
No. of bits to shift: 10 bits (0A hex)
Always 0.
Data shifted into register
8 Hex: Contents of leftmost bit shifted in
Section 3-9
0
Lost
CY
1
355

Advertisement

Table of Contents
loading

Table of Contents