Before you laugh at me: I want to ask arithmetic operation is done in ALU unit or accumulator. I read a book it says accumulator is a register for doing arithmetic.
This Accumulator said
Without a register like an accumulator, it would be necessary to write the result of each calculation (addition, multiplication, shift, etc.) to main memory, perhaps only to be read right back again for use in the next operation.
Does this mean that without accumulator the operation itself still can be done?
I'm from high level language I need to understand it.
Role of an accumulator An accumulator is primarily used as a register in a CPU to store intermediate logical or arithmetic data in multistep calculations. For such calculations, it functions as a temporary storage location.
The row of digit-wheels in the carriage (at the front), is the Accumulator.
The accumulator can hold one of the two operands during any ALU operation. If we want to add two bytes together, this would just be an example here; one byte would go to the accumulator, and the other in memory or general purpose register. When executed the two numbers serve as the input to the ALU.
They are used to maintain pressure, store and recapture energy, reduce pressure peaks, power chassis suspensions, and dampen shock, vibration and pulsations. Under gas pressure, accumulators store a volume of fluid that can be re-fed into the hydraulic system when it is needed.
Yes, you don't need an accumulator for a CPU. For example, stack-based processors typically only have one or two stack pointers but no accumulator. As the article says, these processors load the values to operate on from memory just prior to operation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With