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 get a syntax error 141 near else void shiftout (char a) { char R3; char R2; R3 = a; for (R2 = 0x08; R2 !=0; R2--) { if (R3^7 == 1); { R3 =_crol_(R3,1); datalijn = 1; } else { R3 =_crol_(R3,1); datalijn = 0; } _nop_(); klok = 1; _nop_(); klok = 0; } }
Please read the instructions about posting code! Then you will get a legible layout, like this:
void shiftout (char a) { char R3; char R2; R3 = a; for (R2 = 0x08; R2 !=0; R2--) { if (R3^7 == 1); // Semicolon??!! { R3 =_crol_(R3,1); datalijn = 1; } else { R3 =_crol_(R3,1); datalijn = 0; } _nop_(); klok = 1; _nop_(); klok = 0; } }
if (R3^7 == 1);