• passing function pointers as parameters
    Hi, I have written a simple 8051-application using uVision2 V2.37. I have defined a function which expects a pointer to a function which is then saved in an array of function pointers: int registerFunction...
  • xdata pointer as function parameter
    I'm pretty sure I know the answer to my question, but I like verification. Say I have an array in xdata: unsigned char xdata foo[32]; I have a function which accepts a pointer and does stuff...
  • Function pointer parameter
    From C,I called an assembly function passing in generic pointer and a function pointer. I can access the first parameter (generic pointer) by taking in the values from R2 and R1 but I have difficulty...
  • function parameter error
    1.I have defined a function as follow: char str_cmp(const char*str1,const char*str2); but the two parameter str1 and str2 have the same value(0x1206) after enter this function although they are different...
  • About the function's parameters list
    In KeilC compiler,I find the function's parameters list is limited in bankswitch mode. When i use the bankswitch mode in keilc, the function's parameters list cann't be above 6 bytes. For example...