5.3 Declaration Identifiers in a C51-Compiler
The declaration identifiers in a C51-compiler for the various MPC82G516A memory spaces are as follows:
data
128 bytes of internal data memory space (00h~7Fh); accessed via direct or indirect addressing, using instructions
other than MOVX and MOVC. All or part of the Stack may be in this area.
idata
Indirect data; 256 bytes of internal data memory space (00h~FFh) accessed via indirect addressing using
instructions other than MOVX and MOVC. All or part of the Stack may be in this area. This area includes the data
area and the 128 bytes immediately above it.
sfr
Special Function Registers; CPU registers and peripheral control/status registers, accessible only via direct
addressing.
xdata
External data or on-chip eXpanded RAM (XRAM); duplicates the classic 80C51 64K bytes memory space
addressed via the “MOVX @DPTR” instruction. The MPC82G516A has 1024 bytes of on-chip xdata memory.
pdata
Paged (256 bytes) external data or on-chip eXpanded RAM; duplicates the classic 80C51 64KB memory space
addressed via the “MOVX @Ri” instruction. The MPC82G516A has 1024 bytes of on-chip xdata memory.
code
64K bytes of program memory space; accessed as part of program execution and via the “MOVC @A+DTPR”
instruction. The MPC82G516A has 64K bytes of on-chip code memory.
23
MPC82G516A Data Sheet
MEGAWIN