COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Accumulator
|
|
Instruction Register
|
|
Program Counter
|
|
ALU
|
Detailed explanation-1: -A CPU with an accumulator-based architecture always stores the intermediate results of calculations in a special register even if it has several others. This special register is the accumulator.
Detailed explanation-2: -In a computer’s central processing unit (CPU), the accumulator is a register in which intermediate arithmetic logic unit results are stored.
Detailed explanation-3: -Therefore, most of the instructions in the instruction set refer to the accumulator (e.g., the 6502 is an accumulator-based microprocessor). The purpose of all the microprocessors internal registers of 6502 is predefined by the manufacturer. Therefore, these are special purpose registers.
Detailed explanation-4: -Accumulator: An accumulator acts as a temporary storage location to hold an intermediate result in mathematical and logical calculations. Accumulator is a type of register present in a CPU (Central Processing Unit).
Detailed explanation-5: -Typically, the ALU includes a register that it uses to store intermediate results of calculations. This register is known as the accumulator .