Thanks for mentioning that Charlie! (I forgot too)
It would certainly simplify the code. I went with the non-LONG method in the case that Pxidr84 might not have PBP3, and so no LONG variables. But yes, I would definitely use them if available. Either way, hopefully the methodology of the example is instructive in learning to scale integers to fit into the given variable space.
Also, there is a correction I need to make to the code. I forgot an ENDIF:
Code:
IF mSec_Ticks > (cacc * cacc_div) THEN
IF freq < ref THEN freq = freq + 1
mSec_Ticks = mSec_Ticks - (cacc * cacc_div)
IF freq >= ref THEN
GOSUB StopTimer
GOSUB ResetTime
ENDIF
ENDIF
Sorry about that.
Bookmarks