LIBPATH . // Add a directory to the library search path LIBPATH c:\work\mcc\cc\install\lib FILES p17c44.o //CODEPAGE NAME=reset_vector START=0x0000 END=0x0027 // Reset Vector // For off-chip firmware, we don't want anything located in the // on-chip address space. // // We make some of the on-chip stuff PROTECTED because we put // the entry points to the bootloader which the firmware calls // in there. No code will actuall go there, but we need to // locate empty sections there to get the relocations. CODEPAGE NAME=entrypoints START=0x1000 END=0x3fff PROTECTED CODEPAGE NAME=firmware START=0x4000 END=0x5FFF CODEPAGE NAME=tables START=0x6000 END=0x7FFF PROTECTED SHAREBANK NAME=sharedsfr START=0x00 END=0x0f PROTECTED DATABANK NAME=sfr0 START=0x10 END=0x17 PROTECTED DATABANK NAME=sfr1 START=0x110 END=0x117 PROTECTED DATABANK NAME=sfr2 START=0x210 END=0x217 PROTECTED DATABANK NAME=sfr3 START=0x310 END=0x317 PROTECTED DATABANK NAME=sfr4 START=0x410 END=0x417 PROTECTED DATABANK NAME=sfr5 START=0x510 END=0x517 PROTECTED DATABANK NAME=sfr6 START=0x610 END=0x617 PROTECTED DATABANK NAME=sfr7 START=0x710 END=0x717 PROTECTED SHAREBANK NAME=registers START=0x18 END=0x1f PROTECTED DATABANK NAME=gpr0 START=0x20 END=0xEF // General purpose RAM bank 0 DATABANK NAME=gpr1 START=0x120 END=0x1FF // General purpose RAM bank 1 DATABANK NAME=stack START=0xF0 END=0xFF PROTECTED // Stack RAM STACK SIZE=0x0F RAM=stack