278
Data Shift Instructions Section 3-8
Examples Shifting Data
If shift input H0.14 goes ON when CIO 0.00 is ON and the reset bit H0.15 is
OFF, words D100 through D102 will shift one bit in the direction designated by
H0.12 (e.g., 1: right) and the contents of input bit H0.13 will be shifted into the
rightmost bit of D100. The contents of bit 15 of D102 will be shifted to the
Carry Flag (CY).
Resetting Data
If H0.14 is ON when CIO 0.00 is ON, and the reset bit, H0.15, is ON, words
D100 through D102 and the Carry Flag will be reset to OFF.
Controlling Data
Resetting Data
All bits from St to E and the Carry Flag are set to 0 and no other data can be
received when the reset input bit (bit 15 of C) is ON.
Shifting Data Left (from Rightmost to Leftmost Bit)
When the shift input bit (bit 14 of C) is ON, the contents of the input bit (bit 13
of C) is shifted to bit 00 of the starting word, and each bit thereafter is shifted
one bit to the left. The status of bit 15 of the end word is shifted to the Carry
Flag.
Shifting Data Right (from Leftmost to Rightmost Bit
When the shift input bit (bit 14 of C) is ON, the contents of the input bit (bit 13
of C) (I/O) is shifted to bit 15 on the end word, and each bit thereafter is
shifted one bit to the right. The status of bit 00 of the starting word is shifted to
the Carry Flag.
C: H0
C
E
0.00
H0
D100
D200
D102 D101 D100
St
Data input:
H0.13
Reset input: 0
Shift input: 1
Shift direction
Data
input
Data
input