home *** CD-ROM | disk | FTP | other *** search
- /* Puts the code in an overlay called ROM and origins at address $18000000*/
- partition {
- overlay {
- region {} startup; /* Startup code comes first */
- region {} code;
- } ROM;
- } a [ADDR=$18000000];
-
- /* Puts the data in an overlay called RAM and origins at address $1000 */
- /* Defines an external DATA that points to the data */
- /* Defines the data size as $2000 and sets an external STACKTOP at the top of
- * the data area */
- partition {
- overlay {
- DATA = $;
- region {} data;
- region {} bss;
- STACKTOP = $;
- } RAM;
- } b [ADDR=$1000,size = $2000];