//*.h
interrupt void MRINTA_ISR(void);
#pragma CODE_SECTION(MRINTA_ISR, "mcbsppage");
//*.c
extern unsigned int mcbsppage_loadstart;
extern unsigned int mcbsppage_loadend;
extern unsigned int mcbsppage_runstart;
void main(void)
{
.....
memcpy( &mcbsppage_runstart,
&mcbsppage_loadstart,
&mcbsppage_loadend - &mcbsppage_loadstart);
.....
}
interrupt void MRINTA_ISR(void)
{
.......
}
//*.cmd
SECTIONS
{
.........................
mcbsppage : LOAD = FLASHD, PAGE=0
RUN = RAMH0, PAGE=0
RUN_START(_mcbsppage_runstart),
LOAD_START(_mcbsppage_loadstart),
LOAD_END(_mcbsppage_loadend)
........................
}