General Purpose
Registers
One of the neato things that you will be fooling around most often with
are called the registers. Registers are like variables (such as in BASIC)
that are located within the CPU itself. These registers may hold a positive
integer from 0 to 255 or from 0 to 65535. They can also hold negative integers
from -128 to 127 or from -32768 to 32767. The registers are given names
as follows:
-
AX => accumulator - this register is
most commonly used for mathematical or I/O operations
-
BX => base - this register is used
commonly as a base or a pointer register
-
CX => count - used commonly for counting
instructions such as loops
-
DX => displacement - much like the
base register
The registers stated above are considered general purpose registers,
since they can basically be used to store whatever the user wants.
Return