We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
It's ok after I used the directive NOREGPARMS. Thanks to everyone.