This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Call an extern function at a specific address

Hi,

at address 01800h there is a function of an old project (range: 01800h-02000h). I want to use it again in a new project (range: 0h-01000h). The new project is written in C. I already declared this:
extern bit function1 ((unsigned char a, unsigned int n, unsigned char *s);

How do I order the linker to use the address 01800h for this function?

Of course I could use a assembler function which does a LJMP 01800h...

TIA

Gustl

0