/* This is a linker parameter file for the mc68hc908ab32 */

NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */

SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
    Z_RAM                    =  READ_WRITE   0x0050 TO 0x00FF;
    RAM                      =  READ_WRITE   0x0100 TO 0x044F;
    ROM                      =  READ_ONLY    0x8000 TO 0xFDFF;
    EEPROM                   =  NO_INIT      0x0800 TO 0x09FF;
 /* INTVECTS                 =  READ_ONLY    0xFFD0 TO 0xFFFF; Reserved for Interrupt Vectors */
  //OSVECTORS                =  READ_ONLY    0xFFD0 TO 0xFFFF; /* OSEK interrupt vectors (use your vector.o) */
END

PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
    DEFAULT_RAM,                        /* non-zero page variables */
  //.stackstart,                        /* eventually used for OSEK kernel awareness: Main-Stack Start */
    SSTACK,                             /* allocate stack */
  //.stackend,                          /* eventually used for OSEK kernel awareness: Main-Stack End */
                                        INTO  RAM;

    _PRESTART,                          /* startup code */
    STARTUP,                            /* startup data structures */
    ROM_VAR,                            /* constant variables */
    STRINGS,                            /* string literals */
    VIRTUAL_TABLE_SEGMENT,              /* C++ virtual table segment */
    //.ostext,                          /* OSEK */
    DEFAULT_ROM,
    COPY                                /* copy down information: how to initialize variables */
                                        INTO  ROM; 

  //OSZeroPage,                         /* this is important as for OSEK performance reasons */
    _DATA_ZEROPAGE,                     /* zero page variables */
    MY_ZEROPAGE                         INTO  Z_RAM;

    //VECTORS_DATA                      INTO OSVECTORS; /* OSEK */
END

ENTRIES /* keep the following unreferenced variables */
    /* OSEK: always allocate the vector table and all dependent objects */
  //_vectab OsBuildNumber _OsOrtiStackStart _OsOrtiStart
END

STACKSIZE 0x50

VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
