Summertown
Member
Chips 28X1 & 18M2
I am trying to set/clear some bits. At the moment I am setting/clearing separately e.g.
Bit1 = 0
Bit2 = 0
and so on
What would be easier would be to be able to do something like;
Counter1 being a register B5 and above
For counter1 = 3 to 11
BitCounter1 = 0
next counter1
Similarly I need to interrogate the bits
For counter1 = 3 to 11
If BitCounter1 =1 then........
Next Counter1
Any suggestions?
Thanks
I am trying to set/clear some bits. At the moment I am setting/clearing separately e.g.
Bit1 = 0
Bit2 = 0
and so on
What would be easier would be to be able to do something like;
Counter1 being a register B5 and above
For counter1 = 3 to 11
BitCounter1 = 0
next counter1
Similarly I need to interrogate the bits
For counter1 = 3 to 11
If BitCounter1 =1 then........
Next Counter1
Any suggestions?
Thanks