this:
Code:
if val < 6 AND Menu_Select = 211 then
lookup val,[1,2,4,8,16,32],val ' reasign val to
gosub Show_current_sel_2 ' place "* *" on the selected channel in menu using bit pattern sleection
endif
if val =>6 and val <= 11 and Menu_Select = 2112 then
lookup val-6,[1,2,4,8,16,32],val
gosub Show_current_sel_2
endif
if val =>12 and Menu_Select = 2113 then
lookup val-12,[1,2,4,8,16,32],val
gosub Show_current_sel_2
endif
this should work instead (directly replaced) :
Code:
thingyousubtract var byte ‘ new variable
if val < 6 AND Menu_Select = 211 then
thingyousubtract = 0 : gosub memorysavelookup ' reasign val to
gosub Show_current_sel_2 ' place "* *" on the selected channel
endif
if val =>6 and val <= 11 and Menu_Select = 2112 then
thingyousubtract = 6 : gosub memorysavelookup
gosub Show_current_sel_2
endif
if val =>12 and Menu_Select = 2113 then
thingyousubtract = 12 : gosub memorysavelookup
gosub Show_current_sel_2
endif
memorysavelookup:
lookup val-thingyousubtract,[1,2,4,8,16,32],val
return
and if that still works, you might as well:
Code:
thingyousubtract var byte ‘ new variable
if val < 6 AND Menu_Select = 211 then
thingyousubtract = 0 : gosub memorysavelookup ' reasign val to
endif
if val =>6 and val <= 11 and Menu_Select = 2112 then
thingyousubtract = 6 : gosub memorysavelookup
endif
if val =>12 and Menu_Select = 2113 then
thingyousubtract = 12 : gosub memorysavelookup
endif
memorysavelookup:
lookup val-thingyousubtract,[1,2,4,8,16,32],val
gosub Show_current_sel_2
return
then if it still works, you should be able to:
Code:
memorysavelookup:
lookup val-thingyousubtract,[1,2,4,8,16,32],val
goto Show_current_sel_2
Now this is still assuming I haven’t broken it yet, you can:
Code:
thingyousubtract var byte ‘ new variable
thingyousubtract = 0
if val < 6 AND Menu_Select = 211 then
gosub memorysavelookup
endif
if val =>6 and val <= 11 and Menu_Select = 2112 then
gosub memorysavelookup
endif
if val =>12 and Menu_Select = 2113 then
gosub memorysavelookup
endif
memorysavelookup:
lookup val-thingyousubtract,[1,2,4,8,16,32],val
thingyousubtract = thingyousubtract + 6
goto Show_current_sel_2
Bookmarks