Accumulator - 8051 Microcontroller Register
Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
The Accumulator
If you've worked with any other assembly
languages you will be familiar with the
concept of an Accumulator register.
The Accumulator, as its name suggests, is
used as a general register to accumulate the
results of a large number of instructions.
It can hold an 8-bit (1-byte) value and is
the most versatile register the 8051 has due
to the shear number of instructions that
make use of the accumulator. More than half
of the 8051s 255 instructions manipulate or
use the accumulator in some way.
For example, if you want to add the number
10 and 20, the resulting 30 will be stored
in the Accumulator. Once you have a value in
the Accumulator you may continue processing
the value or you may store it in another
register or in memory.