Hi All
I have set up a bit as a counter.
So for example b1=10, I then count this down via b1=b1-1. The problem is that once I count down to 0 ( zero ), if I then count one less I get and underflow which the sets the value of b1 to 255 then 254 etc
How can I stop b1 from underflowing if it still receives the b1=b1-1 in the program?
I have tried a few variations of the forum posts, but to no success.
I await your enlightened replys
Thank you
I have set up a bit as a counter.
So for example b1=10, I then count this down via b1=b1-1. The problem is that once I count down to 0 ( zero ), if I then count one less I get and underflow which the sets the value of b1 to 255 then 254 etc
How can I stop b1 from underflowing if it still receives the b1=b1-1 in the program?
I have tried a few variations of the forum posts, but to no success.
I await your enlightened replys
Thank you