
Line renumbering for the TS-1000 required typing in a routine at the end of an existing program. The TS-2068 has the advantage of having a MERGE command which allows the user to merge a routine into an existing program without typing it in every time. I used this program to renumber a 220 line program and it did so in about 5 minutes.
The TS-1000 routine would sometimes renumber a portion of the program and the remainder would be garbled. This seemed particularly true if the program was over 50 lines long. RENUM-2000 renumbered 200 lines correctly but merged one line with another. The two lines had to be re-entered.
As in the TS-1000 version, the GOTO and GOSUB line addresses have to be edited manually and as in any program that is merged, it will overwrite any lines that exist in the first program.
The routine ends by asking the user if the RENUM-2000 routine is to be deleted.
To use RENUM-2000, first type it in and save it on tape under the name “RENUM-2000”. Now load in the program to be renumbered. Now put the RENUM-2000 tape into the recorder and enter MERGE “RENUM-2000” or MERGE “”. To execute the routine, type in GOTO 9986. The first prompt is for what you want the first line number to be and the second prompt is for how many numbers are to be incremented between line numbers.
After the second number is inputted, there will be a pause as the lines are being renumbered. The new line numbers will appear in the upper left corner of the screen. When the renumbering is finished, the renumbered program will list itself.
9985 STOP
9986 INPUT "Starting line
number? ";s
9987 INPUT "Increment number?
";i
9988 CLS: LET a=26710: LET
b=s
9990 POKE a,INT (b/256)
9991 POKE a+1,b-256*INT
(b/256):
PRINT AT 0,0;b
9992 LET b=b+i
9993 LET a=a+i
9994 IF 256*PEEK a+PEEK (a+1)
= 9985 THEN GOTO 9997
[The listing breaks off here at line 9994 (GOTO 9997); the rest of RENUM-2000 is not printed in this issue.]
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.