"B" Register - 8051 Microcontroller
Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
The "B" Register
The "B" register is very similar to the
Accumulator in the sense that it may hold an
8-bit (1-byte) value.
The "B" register is only used by two 8051
instructions: MUL AB and DIV AB. Thus, if
you want to quickly and easily multiply or
divide A by another number, you may store
the other number in "B" and make use of
these two instructions.
Aside from the MUL and DIV instructions, the
"B" register is often used as yet another
temporary storage register much like a ninth
"R" register.