Line Numbers

Author(s): Dave Wood
Pub Details: Sinclair Timex User Group Newsletter v2 n7 (Volume 2, Issue 7)
Date: July 1983
Pages: 8

Did you know that you are not limited to 9999 BASIC lines. If you have enough memory for them, you can create up to 16383 lines. The system won’t let you edit lines with statement numbers greater than 9999, but you can create these higher numbered lines by POKEing the line numbers into the BASIC line. These “high” BASIC lines are executable and listable. The line number after 9999 will LIST as A000. The highest line, 16383, will LIST as G383. GOTOs and GOSUBs to “high” lines work fine. Since you have to POKE the line number, a “high” line is most easily generated by entering it as the lowest line in your program, then POKEing the high byte, which is always located at 16509. Enter the following to observe how this works:

1)255 PRINT "TOP"      2)POKE 16509,63   3)254 PRINT "ALMOST"   4)POKE 16509,63
5)253 PRINT "AT THE" 6)RUN 7)9999 GOTO 16383 8)RUN