My current project has 2 targets, For 1 the code starts at 0x0000 and for the other the code starts at 0x8000. I therefore modified STARTUP.A51 to give:
PUBLIC ?C_STARTUP #ifdef TOP CSEG AT 0x8000 #else CSEG AT 0x0000 #endif ?C_STARTUP: LJMP STARTUP1
PUBLIC ?C_STARTUP CSEG AT 0x8000 ?C_STARTUP: LJMP STARTUP1