1. An arithmetic unit comprising: a memory for storing data; an arithmetic logic unit for executing a predetermined arithmetic operation with respect to the data read from memory; a register for temporarily storing the data read from the memory; and a combining circuit for selecting one of the arithmetic logic unit and the register, and replacing a part of the data read from the memory with output data received from the selected one of the arithmetic logic unit and the register.