extern void _stext(); /* startup routine */ extern void tmrint(); /* timer overflow interrupt */ //extern void it_tcmp(); /* timer compare interrupt */ //#pragma section const {vector} void (* const _vectab[])() = { NULL, //AVD NULL, //SCI tmrint, /* TMRB */ NULL, /* TMRA */ NULL, /* SPI */ NULL, /* External Interrupt 3 */ NULL, /* External Interrupt 2 */ NULL, /* External Interrupt 1 */ NULL, /* External Interrupt 0 */ NULL, //MCCRTC NULL, /* unused */ NULL, /* TRAP */ _stext, /* RESET */ }; //#pragma section () 这个是vector.c,不知道这么写有没有问题。 #pragma section const {vector} #pragma section () 这两句不知道有没有必要加上,因为vector是从ffce开始的,而-stext在fffe-ffff位置上,那么是不是还得加上这两句,然后定义好vector起始地址? 浪淘沙在c语言定位里的那个界面我始终调不出,那么我怎么设置那个段地址?
|