This will work;
PortB.0 <-- zero after PortB indicates you're dealing with a bit.Code:X VAR BYTE main: for X = 0 to 7 if PortB.0[X] = 1 then xxxxx next X goto main
PortB.0[X] <-- [X] = the bit index pointer.
This will work;
PortB.0 <-- zero after PortB indicates you're dealing with a bit.Code:X VAR BYTE main: for X = 0 to 7 if PortB.0[X] = 1 then xxxxx next X goto main
PortB.0[X] <-- [X] = the bit index pointer.
"PortB.0 <-- zero after PortB indicates you're dealing with a bit.
PortB.0[X] <-- [X] = the bit index pointer."
Thanks bruce that is a brilliant little tidbit of information (for a noob like me)that I probly glazed over in the manual 20 times and it never stuck..
Thanks! I knew it could be done like that...Just not smart enought to figure out how! hahha
thanks again!
Bill12780
Last edited by bill12780; - 23rd July 2007 at 21:43.
Bookmarks