337
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Shift Instruction
3
NASR/NSRL
.
When CIO 0.00 is ON, CIO 100 and CIO 101 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 300 (control data).
The contents of bit 15 of CIO will be copied into the bits from which data was shifted and the contents 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 8 011 37412
C
080A
0.00
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Data shifted into register
8 Hex: Contents of leftmost bit shifted in
No. of bits to shift: 10 bits
(Contents of the leftmost bit is
inserted.)
Lost
Leftmost bit
15 8 011 37412
C
080A
0.00
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Data shifted into register
8 Hex: Contents of leftmost bit shifted in
CY
1
Leftmost bit
Lost
No. of bits to shift: 10 bits
(Contents of the leftmost
bit is inserted.)