PDA

View Full Version : Addressing bits in a loop?



Mad_Labs
- 27th September 2005, 17:21
Hi all,

I want to address bits in a loop, like:
i var byte
char var byte
bla var byte

for i = 0 to 7
serin2, serpin, serbaud,[char]
bla.bit(i) = char
next

Anyway to do this? The above doesn't compile, of course.

Thanks,

Jonathan

Melanie
- 27th September 2005, 17:58
http://www.picbasic.co.uk/forum/showthread.php?t=544

Mad_Labs
- 27th September 2005, 18:11
Melanie,

As always, thanks so much. I did look but didn't find.

Much appreciated,

Jonathan

PS Wicked quick answer, too :)