★ APPLICATIONS ★ DIVERS ★ RESTORE UTILITY (COMPUTING WITH THE AMSTRAD) ★ |
RESTORE efficiency | RESTORE UTILITY |
This provides a computed RESTORE facility setting up two RSXs. The first has the syntax: ùREST,ln,oset where ln is the line number and oset is the offset into the data line, both of which can be computed before or within the statement. The line number can be the line with the data statement or a line somewhere before it. The offset is the number of items past the data statement at line ln from which you want to start reading. The other RSX can keep trace of lines that have been renumbered with the syntax: ùSEEK,àa$,àln% To use it, simply insert REMs at the start of each line, at points where you wish to identify areas of data. Then put a unique string after the REM. The idea is that you can add a line at the start of the program that will search for the unique string and report the line where it occurs. CPC664/6128 onwers can use the string without having to resort to a variable as in ùSEEK,"data",àln%. Please note, there is one small problem with this routine - if you put a comma within a quoted data line:- 1000 DATA "Jump to it, men" this will appear as two items of data - Jump to it and men. https://CPCrulez.fr |
|
|