Quote:
Originally posted by EbonySeraphim
If you want to use such a counter you have to consider two things - if you want to go over 254 you need to use your own logic and do something like:
counter = counter + 1
if counter = 254
counter1 = 0
counter2 = counter2 + 1
endif
I don't want to explain too much but this would basically allow you go count up to 2^16...
|
PBasic supports word size variables which would let you hold 2^16 without adding extra code. Our code worked something like this:
Time VAR word
...
Time = Time + 1
Hope this helps.