摘要 |
PURPOSE:To execute a data shift instruction at a high speed by providing a reading register, a positioning device, a switch, etc. within a memory and performing the byte positioning at the memory side a CPU between data of a shift originator and a shift destination. CONSTITUTION:When a data shift instruction is executed, a microprogram corresponding to the shift instruction first obtains a variance 41 between the byte position corresponding to a shift destination address and that corresponding to a shift originator address. Then the variance 41 is obtained in a memory area of a memory and set to a differential register 4 by a microinstruction. The output 40 of the register 4 indicates the number of shafts to an alignment device 3. Then the output 30 is delivered from the device 3 to complete a shift instruction. In such a way, the byte positioning is carried out outside a CPU in case the final word is written twice during execution of a shift instruction. Thus a data shift instruction is executed at a high speed.
|