@@ -396,18 +396,17 @@ Here is an extreme example.
3963961 I=-1
39739710 I=I+1: IF I MOD 1000 THEN 10 ELSE I=0
39839810 PRINT: PRINT
399- 10 PRINT "This is line ten."
399+ 10 PRINT "This is line ten. ";
40040010 PRINT "This is also line ten."
4014015 PRINT "Line five runs after line ten."
402- 10 PRINT "Where would GOTO 10 go?"
403- 15 PRINT " (The following line is 7 GOTO 10)"
402+ 10 PRINT "Where would 7 GOTO 10 go?"
4044037 GOTO 10
4054048 ERROR "Line 8 is skipped by GOTO 10."
406- 10 PRINT: PRINT "It goes to the *next* line ten!"
405+ 10 PRINT: PRINT " It goes to the *next* line ten!"
40740610 FOR T=0 TO 1000: NEXT T
408- 10 PRINT "Exceptions: Goes to *first* line ten "
409- 10 PRINT " if the current line is ten , or"
410- 10 PRINT " if a line number > 10 is seen."
407+ 10 PRINT "However, it searches from the top when "
408+ 10 PRINT " A) 10 GOTO 10 , or"
409+ 10 PRINT " B) a line number > 10 is seen."
41141010
41241110 'Shouldn't 10 GOTO 10 go to itself?
41341210 'It shouldn't have to search at all.
@@ -422,23 +421,26 @@ Here is an extreme example.
42242110 PRINT
42342210 PRINT "The next line is 9 GOTO 10. This time"
42442310 PRINT "it goes to the FIRST line ten, because"
425- 10 PRINT "line 20 comes before the next line ten."
424+ 10 PRINT "line 20 comes before the next line ten.";
4264259 GOTO 10
42742620 ERROR "Line 20 is never reached, but it has an effect because 20>10."
42842710 ERROR "This is the final line ten. The previous GOTO 10 won't find it because line 20 comes first."
42942810
43042915
43143020
432- 0 PRINT "This program examines how"
433- 1 PRINT "Model T computers run"
434- 2 PRINT "degenerate tokenized BASIC."
435- 3 PRINT "Trying to load it as a .DO"
436- 4 PRINT "file will not work as"
437- 5 PRINT "Tandy BASIC corrects issues"
438- 6 PRINT "such as duplicate line numbers"
439- 7 PRINT "and out of order lines."
440- 8 PRINT "Please use hackerb9's"
441- 9 PRINT "pre-tokenized GOTO10.BA."
431+ 0 PRINT "This program examines how Model T com-"
432+ 1 PRINT "puters run degenerate tokenized BASIC."
433+ 2 PRINT
434+ 3 PRINT "Loading it as a .DO file will not work."
435+ 4 PRINT "Tandy BASIC corrects issues such as"
436+ 5 PRINT "out of order or duplicate line numbers."
437+ 6 PRINT
438+ 7 PRINT "Please create GOTO10.BA:"
439+ 8 PRINT " m100-tokenize GOTO10.DO >GOTO10.BA"
440+ 9 PRINT
441+ 10 PRINT "Or use the pre-tokenized GOTO10.BA at:"
442+ 15 PRINT " github.com/hackerb9/tokenize/"
443+ 20 PRINT " raw/main/degenerate/GOTO10.BA"
442444```
443445
444446To run this on a Model 100, one must download the tokenized BASIC file,
0 commit comments