Probably not, 'cause that sounds like it involves 'fuzzy logic', the ability to change parameters in the middle of what you're doing, or something like that.
Maybe an extra if/then in each chunk of tone code checking for the 'exactness' of the tone?
You do understand the concept of the example above right?
If the value is above 14925 it'll jump to t1...and you're done...
if the value is 14925 or below, it'll skip the first one and try the second one...
If the value is above 12987 (but below or equal to 14925 'cause it checked it during the first check), it'll jump to t2...and you're done....
...and so on and so on and so on...
And you don't have to use the BRANCHL statement. Once you've got your index variable into B0, you can use the SELECT CASE statement to handle the individual blocks of code instead of a bunch of goto's.
Bookmarks