Renumber II

Pub Details

Date

Pages

See all articles from Byte Power May 1988

This utility will allow you to renumber any BASIC programs. It will renumber GOTO, GOSUB, RUN, LIST, DELETE, LLIST, RESTORE, and LINE.

There is no special format for line numbers except that the program will not accept variables or formulaes.

Here is an example of what it can and can not renumber…

10 GO TO 2020 RUN VAL “9e3″30 DELETE 20,VAL “30”

These 3 lines are accepted.

10 GO TO A20 RUN 10*A30 DELETE VAL “10+10”,VAL A$

These 3 lines will not be accepted because they contain variables or formulaes.

Notice that the program does renumber VAL’s.

There are 2 versions of this program, one in high memory (62000) and the other in low memory (16384 screen). Neither is relocatable. Once loaded, the high memory version will stay in memory at all times. The low version is used for very large programs or for a one time use, as soon as the screen clears it has to be loaded again if needed.

To load either versions just LOAD “”CODE, then RANDOMIZE USR 62000 (if high version), or 16384 (low version). You should CLEAR 61999 before loading the high version.

These 2 versions are in ordinary save so you will be able to load them directly.

To make a back up copy…Load the high version, then SAVE “RENUM62000″CODE 62000,3536

For the low version, CLS: LOAD “RENUM16384″SCREEN$: SAVE “RENUM16384″CODE 16384,3536 [ENTER]. After loading this version, before pressing any key to save, insert the BACK UP tape.

Products

 

Downloadable Media

 

Image Gallery

Scroll to Top