2 Instructions
2-140
CP1E CPU Unit Instructions Reference Manual(W483)
Sample program
SLD
When CIO 0.00 is ON, words CIO 100 through CIO 102 will shift by one digit (4 bits) to the left. A zero
will be placed in bits 0 to 3 of word CIO 100 and the contents of bits 12 to 15 of CIO 102 will be lost.
SRD
When CIO 0.00 is ON, words CIO 100 through CIO 102 will shift by one digit (4 bits) to the right. A zero
will be placed in bits 12 to 15 of CIO 102 and the contents of bits 0 to 3 of word CIO 100 will be lost.
SLD
100
102
0.00
St
E
Lost
0Hex
E: CIO 102 St+1: CIO 101 St: CIO 100
15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0
SRD
100
102
0.00
St
E
Lost
0Hex
E: CIO 102 St+1: CIO 101 St: CIO 100
15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0