I have a bit-addressable var (ibase) that I am loading with a value and then rotating--placing the msb on an I/O pin (SData). The SData pin never changes--it stays high. What am I doing wrong? Thanks!
for(i=0;i<8;i++) { SClock = 0; SData = ibase^7; ibase = _irol_(ibase,1); delay(); SClock = 1; timer0_delay(5); }
"... read the language standard ..."
Well, since you've gone there, I'll pick one nit. What is being referred to here as the "ternary operator" (?:), the standard calls the "conditional operator". However, I have seen "ternary" used in places other than just here.
K&R, for example...
"K&R ..."
That's one of the places -- 'the standard' before "the standards".
But I take your point: calling it "the conditional operator" is better - calling it "the (sic) ternary operator" only happens to work because 'C' doesn't have any other ternary operators!