Bump changelog
[debian-beebasm.git] / examples / autolinenumdemo.bas
blob9efd51438800fa392a8d06aae31510c88a8d6977
1 REM Line numbers are now optional in BASIC programs used with the putbasic
2 REM command.
3 100PRINT "but you can give them if you want, so the change is backwards-";
4 110PRINT "compatible."
5 FOR I%=1 TO 10
6 RESTORE (1000+RND(3)*10)
7 READ word$
8 PRINT word$
9 NEXT
10 PROCgoodbye
11 END
12 REM Apart from backwards compatibility, being able to specify line numbers
13 REM is handy for the rare cases where BASIC needs them, such as computed
14 REM RESTORE statements.
15 1010DATA foo
16 1020DATA bar
17 1030DATA baz
18 DEF PROCgoodbye
19 PRINT "TTFN"
20 ENDPROC