
Bet you thought the highest line number you could enter in a program was 9999. Guess again!
Enter this short program:
10 REM
20 INPUT A
30 INPUT B
40 POKE 16509,A
50 POKE 16510,B
60 LIST
70 PAUSE 40000
80 CLS
90 RUN
For the first input enter “39” and for the second input enter “15”. The program will list itself and the first line will be numbered “9999”. This is the limit in normal programming.
Press ENTER and the program will recycle. Now enter 39 and 16. Voila! The first line number has changed to a quasi-hexidecimal number. You can keep re-cycling the program and entering larger numbers. You’ll find that 63 and 255 to be the limit. If the first input exceeds 63, the program will appear to disappear. Enter POKE 16509,0 and it will return. A funny thing happens when the limit is approached. The “F” limit of the hexidecimal counting system has been surpassed with “G”.
Break the program and enter “10 REM XYZ”. Now list the program. Now enter “20 REM ABC”.
Strange, huh? Try editing lines! The ones before the original REM line can be edited but beyond that weird things happen. Enter NEW and try this one:
10 GOTO 10
and enter POKE 16509,40 and POKE 16510,5. Now enter this line:
10 SCROLL
and enter POKE 16509,40 and POKE 16510,4. Now enter this line:
10 PRINT "GOODBYE"
and enter POKE 16509,40 and POKE 16510,3. Now enter this line:
10 SCROLL
and enter POKE 16509,40 and POKE 16510,2. Now enter this line:
10 PRINT "HELLO"
and enter POKE 16509,40 and POKE 16510,1 and finally this line:
10 SCROLL
LIST the program. Looks crazy but it runs perfectly, just as if the lines were in the normal range. This will give you something to experiment with, as I’m sure you will want to write your programs utilizing this extra line space (ha ha!).
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.