Ax51 User's Guide

Special Assembler Symbols

The Ax51 assembler defines and reserves names of the x51 register set. These predefined names are used in x51 programs to access the processor registers. Following, is a list of the each of the 8051, 80C51MX, and 251 registers along with a brief description:

RegisterDescription
ARepresents the 8051 Accumulator. It is used with many operations including multiplication and division, moving data to and from external memory, Boolean operations, etc.
DPTRThe DPTR register is a 16 bit data pointer used to address data in XDATA or CODE memory.
PCThe PC register is the 16 bit program counter. It contains the address of the next instruction to be executed.
CThe Carry flag; indicates the status of operations that generate a carry bit. It is also used by operations that require a borrow bit.
ABThe A and B register pair used in MUL and DIV instructions.
R0 – R7The eight 8 bit general purpose 8051 registers in the currently active register bank. A Maximum of four register banks are available.
AR0 – AR7Represent the absolute data addresses of R0 through R7 in the current register bank. The absolute address for these registers changes depending on the register bank that is currently selected. These symbols are only available when the USING assembler statement is given. Refer to the USING assembler statement for more information on selecting the register bank. These representations are suppressed by the NOAREGS directive off the Cx51 compiler.
PR0, PR1The Universal Pointer Registers of the 80C51MX architecture. Universal Pointer can access the complete 16MB address space of the 80C51MX. PR0 is composed of registers R1, R2, and R3. PR1 is composed of registers R5, R6, and R7.
EPTRAdditional extended data pointer register of the 80C51MX architecture. EPTR may be used to access the complete memory space.