[an error occurred while processing this directive]
|
codeseg
Directs subsequent function definitions to the specified segment..
Syntax
#pragma codeseg(seg_name)
Description
By default functions are directed to the segment CODE. The command #pragma codeseg(RCODE) can be used to direct code to the RCODE segment.
Note that all functions in the same C source file must be in the same segment.
Examples
This example declares an interrupt routine to be stored in the RCODE segment. The #pragma function=interrupt ensures that appropriate code will be produced; see function=interrupt, for details.
#pragma codeseg(RCODE)
#pragma function=interrupt
void process_int()
{
...
}
#pragma function=default
После чего в *.xcl определяешь сегмент в нужном месте
-Z(CODE)RCODE=2000-20FF
E-mail: info@telesys.ru