Hi,
Bearing in mind the limited number of total gosubs that can be made in a PICAXE program, is it possible in general to replace the sequence:
given:
with:
ie chain the subroutines and let the return at the end of subroutineB return to subroutineA's caller, and save a gosub slot?
Rgds
Damon
PS. How would the chained solution's speed compare to the normal original version?
Bearing in mind the limited number of total gosubs that can be made in a PICAXE program, is it possible in general to replace the sequence:
Code:
subroutineA:
...
gosub subroutineB
return
Code:
subroutineB:
...
return
Code:
subroutineA:
...
goto subroutineB
Rgds
Damon
PS. How would the chained solution's speed compare to the normal original version?