• sbit as parameter to a function
    Is it possible to define a sbit variable e.g. sbit port0_0 = P0 ^ 0; and to call a function with this sbit-definition as a parameter? e.g. setPortPin(port0_0); And how does the declaration...
  • 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...
  • 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...
  • 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...