|Re: 35s, Global Labels, and GTO a program line from RUN mode|
Message #3 Posted by Gene Wright on 13 July 2007, 3:36 p.m.,
in response to message #1 by Les Wright
Hi. If you pull down the learning module showing the indirect register packing program, you'll see how this is used. The main store/recall routine starts at step 001, but the initialization routine starts at step 070.
There's also a program example of an indirect register sort routine in the main indirect register learning module. Granted, it is pretty bad as a sort goes, but hey...time was short!
Basically, the answer is yes, but I think it is a bit easier than you show.
The Matrix Utilities program to soon be published in Datafile has instructions like this:
"2 ) To execute routine “M1” – to interchange two rows, key the two row numbers (order is unimportant) into X and Y and press XEQ M001 or XEQ M ENTER. No stack registers preserved."
"3 ) To execute routine “M2” – to multiply row “i” by the constant “k,” key “k” ENTER “i” and press XEQ M037. No stack registers preserved."
You do not need to type a decimal point if you wish to begin execution at a line number. No need for GTO . A025 R/S. Just type XEQ A then fill in the step prompt with 025 and execution will begin at program A, step 025.
The XEQ A ENTER shortcut was a good compromise rather than having to type XEQ A001 every time you want to start at step 001. At least, I hope people think that!
What I envision as one possibility is that a user might dedicate a label to be nothing but subroutines! Simply keep a list of where they start handy. Need another subroutine? Add it to the end of LBL S (for subroutines). Seems to work ok for me.