Yep... makes sense. After all of your responses and looking at the manual for BranchL...

Originally Posted by
TFM
...Index selects one of a list of Labels. Execution resumes at the
indexed Label. For example, if Index is zero, the program jumps to the
first Label specified in the list, if Index is one, the program jumps to the
second Label, and so on. If Index is greater than or equal to the
number of Labels, no action is taken and execution continues with the
statement following the BRANCHL.....(hence the RETURN)
I guess seeing that return in Darrel's code was throwing me off, but now it I see why it's in there. It looked to me like a way of nesting subroutines. Both of the Steves explainations of how the return address in the stack works answers one of the questions I didn't even ask.... scary! Thankyou all.
Wisdom is knowing what path to take next... Integrity is taking it.
Ryan Miller
Bookmarks