Figure 126. zneo c-compiler memory layout, S specifiers is shown in figure 126 and, Near – Zilog ZUSBOPTS User Manual
Page 186

Language Extensions
UM017105-0511
158
Zilog Developer Studio II – ZNEO™
User Manual
_Near
The variable with the
_Near
storage specifier is allocated in the 16-bit addressable near
RAM address space. This space corresponds to the RAM assembler address space defined
in the linker address space project settings. These variables lie within the 16-bit address
range
8000-BFFF
, which is the 32-bit range
FF_8000-FF_BFFF
.
For example:
_Near int ni; /* ni is placed in RAM address space */
In the ZNEO compiler, the peripheral registers (16-bit address:
C000-FFFF
and 32-bit
address:
FF_C000-FF_FFFF
) are also mapped to the
_Near
storage specifier, and no sep-
arate keyword is provided.
For example:
#define T0CTL0 (*(unsigned char volatile _Near*)0xE306)
T0CTL0 = 0x12;
_Rom
The variable with the
_Rom
storage specifier is allocated in the space corresponding to the
ROM assembler address space, which is defined in the linker address space project set-
tings. These variables lie within the 16- or 32-bit addressable range
0000-7FFF
. The
lower portion of this address space is used for Flash option bytes and interrupt vector
table.
Figure 126. ZNEO C-Compiler Memory Layout
_Far
_Near
_Erom
_Rom