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 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(0x0100,0x1206) in the caller.

2.another problem is the compiler locate the
explicit xdata parameter in data memory,as follow:
int xdata i;
i is located in 0x06 and I can't change the value of i with the following statment,i=10;
but if I define i as long,it is located in xdata.

Parents Reply Children
No data