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.
always getting an syntax error 213: leftside of asn-op not an lvalue void scherm (void) { char s [10]; char i,y; printf("volgende string stond weggeschreven: "); for (i=0;i < 10;i++) { DPTR = i; sel = 0; ACC = 0x03; shiftout (ACC); ACC = DPH; shiftout (ACC); ACC = DPL; shiftout (ACC); y = shiftin (); s [i] = y;//error line sel = 1; printf("%s",s); } }
Please read the instructions about posting code! "always getting an syntax error 213: leftside of asn-op not an lvalue" Where? Note that it is very dodgy to fiddle directly with DPTR, ACC, etc in 'C' source code! You have absolutely no guarantee whatsoever that the compiler won't also be using these registers for its own purposes. It looks like you are just trying to re-write assembly code in 'C' - a pointelss excercise!