Moving Billboard

Author(s): Paul Ezra
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n2 (Volume 3, Issue 2)
Date: February 1982
Pages: 8

This program continuously scrolls up to 23 (and more) lines of characters. Do not print more than 32 characters in any PRINT instruction, such as line 150, or the scrolling will fail.

These billboard lines are double-spaced. To increase the spacing, increase the difference between adjacent A(1) values the lines 70-74. If you use many PRINT lines, you must insert a CLS strategy. The use of DIM A(1) as a sum-to-memory strategy is discussed this page. Line 99 causes the billboard to repeat endlessly.

  10 SCROLL
20 DIM A(1)
30 PRINT "MAJOR"
40 LET A(1)=A(1)+1
50 SCROLL
60 PAUSE (80)
70 IF A(1)=1 THEN GOTO 110
71 IF A(1)=2 THEN GOTO 140
72 IF A(1)=3 THEN GOTO 170
73 IF A(1)=4 THEN GOTO 200
74 IF A(1)=5 THEN GOTO 230
99 IF A(1)=6 THEN GOTO 10
100 GOTO 40
110 SCROLL
120 PRINT "BIRTHS:"
130 GOTO 40
140 SCROLL
150 PRINT "EARTH"
160 GOTO 40
170 SCROLL
180 PRINT "LIFE"
190 GOTO 40
200 SCROLL
210 PRINT "MAN"
220 GOTO 40
230 SCROLL
240 PRINT "CHRIST"
250 GOTO 40
Syntactic Sum: 28015, 8K

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.