I'm using PBPro and I hoping someone can answer a fairly simple question for me. I want to test for 1 or more set bits on port a.
For single bit testing, this doesn't work -
IF (porta AND %00000001) THEN ...
This also doesn't work -
IF (porta AND %00000001) = 1 THEN ...
For multiple bit testing, this doesn't work -
IF (porta AND %00000101) THEN ...
This also doesn't work -
IF (porta AND %00000101) = 1 THEN ...
Is there another way besides IF (porta.0 = 1 AND porta.3 = 1) THEN... to test for set bits? I thought AND was an accepted test for byte testing.
Thank you for your help.
Jim Burnham
Bookmarks