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

Function Pointers problems...

Hi, everybody
my memory model is large, and I have 2 banks (bank0 and bank1).
In one module of a bank0 I define:
void (code *fp_tab[]) ( void ) = {
MyFunct
};

In Common Bank I define:
void MyFunct(void)
{
printf('Hello');
}

when I call (from another module of Bank 0):

fp_tab[0]();

the function MyFunct runs twice, and I see two times 'Hello'.

Thanks for all
Mark

0