Scroller

Author(s): Theo Turk
Publication: ZX-Appeal
Date: October 1986
Pages: 16

For the TS-1000/1500/ZX-81

July 7, 1986

This program, like my previous one is a basic “Scroll left” routine. However, with my last one, I could only enter a 64 character message into memory. This program not only allows you to enter any message up to 15K characters in length but will also let you use various “flash words” in your message to emphasize certain portions.

There are various reports given, if in error. A report code of “2” means either that line 10 has been omitted or that one of the “flash words” is not enclosed by parenthesis. A report code of “B” means that you are trying to enter an empty string, or the length of the message in A$ is <32 characters long or the length of a flash word is >25 characters long.

Keep in mind, each “flash word” must be enclosed by parenthesis and with any two flash words, the first character in each flash word (example 1) must be separated by >=32 characters.

TYPE IN THE FOLLOWING LINES:

1   REM followed by (300 X's)
2 LET B$="C32A41000000000000000000000000260DFF11FFFF062519D010FE000018F6"
3 LET B$=B$+"2100002289400620ED5B7B402A85407EFE11280BFE102008228740ED538940AF23121310EA2A89407CB5C8ED5B8F40A7ED52C021FA00CD94402A8740232287403E111619010000BE280803231520F8C34B0D79FE1AD2AD0EED438B400603C52A89403A8B402336003D20FA21FA00CD9440ED5B8940132A8740ED4B8B40EDB021FA00CD9440C110D6C9"
4 LET B$=B$+"CD2B0F213D40061D361B2310FB2A0C40114B0119227B4011040019228F40219140221640CD1C11DA4B0D234E234678B1CAAD0E23228540211F00A7ED42D2AD0EED438D40CDA14021B603CD9440213200CD94402A85407E325B40545D23ED4B8D400BEDB02B113C401A77213D40011F00EDB0213200CD9440CDA140CD460F38CDC9"
 5 LET A=16514
6 POKE A,16*CODE B$(1) + CODE B$(2) - 476
7 LET A=A+1
8 LET B$=B$(3 TO)
9 IF B$<>"" THEN GOTO 6
10 STOP

To see what happens, RUN the program and in a few minutes the 300 bytes of Machine Code in B$ will be placed into the REM Statement; Line 1.

As soon as the computer stops in Line 10, then SAVE a copy on tape, in case of errors.

NOW ADD:

10 INPUT A$
20 RAND USR 16514
30 STOP

RUN 10 and enter the following line which will include (2) flash words.

example…
“(CLEVELAND) MAY BE THE BEST LOCATION IN THE NATION, HOWEVER,

example…
I LEFT MY HEART IN (S A N F R A N C I S C O).”

If the display seems to working correctly, press “break” and delete lines (2 to 9).

NOTE. to introduce “flash words” into any message, simply enclose each one in parenthesis.

to terminate the program, press “break”. NOTE: any error return or “break” will destroy part of the message stored.

Reprinted from the July/86 issue of RAMTOP.

The REM in line 1 reserves 300 bytes; the hex in B$ as printed holds 297.

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