摘要 |
PROBLEM TO BE SOLVED: To process a barrel shift fast by composing a carry register of a variable length register which varies in bit length with the shift bit number included in a shift instruction according to information from an instruction decoder. SOLUTION: This unit is equipped with a barrel shift arithmetic part 1 which makes plural bit shifts in one cycle and the carry register 3 which stores data overflowing from the arithmetic part 1, and the carry register 3 is composed of the variable length register which varies in bit length with the shift bit number includes in the shift instruction. When a barrel shift of data which is longer than the bit length of the barrel shift arithmetic part 1 is made, (n)-bit data overflowing from the barrel shift arithmetic part 1 as a result of the barrel shift operation of a divided bit group is stored in the variable length carry register 3 having changed to (n)-bit length and used as it is for the barrel shift operation of a next bit group. Thus, the barrel shift operation can be completed through a small number of steps. |