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.
Bookmarks