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.
In trying to compile the following ( trivial to me) C code with the C51 compiler, I received error c213 "left side of asn-op not an lvalue" - " the address of a changeable object is required at the right side of the assignment operator". Code: unsigned int A[8]; unsigned int B[8]; unsignned int i; for (i = 0; i = 7; i++) A[i] = B[i]; /* error here */ Is it the compiler or the code??? Any help or comments appreciated. Thanks Andy
The following code seems to work OK:
void main (void) { unsigned int A[8]; unsigned int B[8]; unsigned int i; for (i = 0; i < 8; i++) { A[i] = B[i]; /* error here */ } }