Hi All,
I want to use this particular line in a project:
"if b2 bit 0 set and b2 bit 1 clear and w14=1000 and pinC.4=0 then gosub dim"
Yes i realize my code is convoluted but this is the extent of my programming skills
I have been using whole bytes for 1's and 0's which is probably a waste of bytes when I've used most of them already.
Is there a way to rewrite the code to make it work as PE does not like using "setbit" after AND/OR in an "if" statement...No problem with the line if using whole bytes.
Cheers,
Kurt
I want to use this particular line in a project:
"if b2 bit 0 set and b2 bit 1 clear and w14=1000 and pinC.4=0 then gosub dim"
Yes i realize my code is convoluted but this is the extent of my programming skills
I have been using whole bytes for 1's and 0's which is probably a waste of bytes when I've used most of them already.
Is there a way to rewrite the code to make it work as PE does not like using "setbit" after AND/OR in an "if" statement...No problem with the line if using whole bytes.
Cheers,
Kurt
Last edited: