Set function to specific address in PIC18F with the HI-TECH C compiler
IIRC, you can set a function to an absolute address by using the "@" qualifier:

void MyFunction() @ 0x2A0
{
    ...
}


So the function MyFunction will be placed at address 0x2A0 in Program Memory.