• Function pointer to printf() problem
    My chip has internal ROM and also external ROM. What I want to do is let my customers write their own external program and the internal functions could be called and executed. I did experiment with printf...
  • Problem in function pointer variable
    Hello, I have faced a problem with a function pointer variable. I have separated the uart module in two parts: HAL, which abstracts the hardware, and Service, which provides the uart service to the...
  • problem with function pointers
    Hi, I'm trying to succeed in a function pointer. what is wrong with the compiler says: syntax error: token -> 'code' ; column 18 #include <string.h> char str1[10]; xdata unsigned int i; xdata...
  • Problem with pointer to function
    Hello, data char var; void (code * data fptr)(void); void fun(void) { var = 10; } void main(void) { fptr = fun; (*fptr)(); // OK! (*(fptr = fun))(); // This line generates bad code! (*(fptr...
  • 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...