SEGMENTS
RAM = READ_WRITE 0x0400 TO 0x0FFF; //0x0400 TO 0x0FFF; 0x3000 TO 0x3FFF
/* unbanked FLASH ROM */
ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;
/* banked FLASH ROM */
PAGE_3C = READ_ONLY 0x3C8000 TO 0x3CBFFF;
PAGE_3D = READ_ONLY 0x3D8000 TO 0x3DBFFF;
PAGE_3E = READ_ONLY 0x3E8000 TO 0x3EBFFF;
/* PAGE_3F = READ_ONLY 0x3F8000 TO 0x3FBFFF; not used: equivalent to ROM_C000 */
END
PLACEMENT
_PRESTART, /* Used in HIWARE format: jump to _Startup at the code start */
STARTUP, /* startup data structures */
ROM_VAR, /* constant variables */
STRINGS, /* string literals */
VIRTUAL_TABLE_SEGMENT, /* C++ virtual table segment */
DEFAULT_ROM, NON_BANKED , /* runtime routines which must not be banked */
COPY /* copy down information: how to initialize variables */
INTO ROM_C000;
OTHER_ROM INTO PAGE_3C,PAGE_3D,PAGE_3E;
DEFAULT_RAM INTO RAM;
END
STACKSIZE 0x400 //0x100
VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
//VECTOR 0 Entry /* reset vector: this is the default entry point for a Assembly application. */
//INIT Entry /* for assembly applications: that this is as well the initialisation entry point */