General Purpose Registers
Assemnly is using registers like variables (such as in BASIC). Registers are pointing to
a physical or virtual address that contains the value which they have. 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 general purpose registers are the
following:
- AX [accumulator] - most commonly used for mathematical or I/O operations
- BX [base] - 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 programmer wants.
Return