Making a Long REM Line

Publication: SLUG Newsletter
Date: Special Edition
Pages: 14

TS/1000

Making a long REM line for storing MC on a TS/1000 can be made a lot easier with this short program.

First you need a REM statment with 96 characters. ( this will be the last 1 REM you will ever have to key in ) next key in the listing in fig. 1. RUN this and the 1000 will ask for the start address. This is 16514. Now you are ready to key in the numbers in Fig. 2. Key in each line of Fig. 2 one line at a time. pressing ENTER at the end of each line. (Each line consists of 12 characters with no spaces.)When you have finished the last line hit “S”.

Finally add the lines in Fig. 3 and SAVE. You must have line >2 REM< it is a safety buffer. After you have SAVEd the progran you can RUN it. When the message REM LENGTH? comes up. key in 1000 and ENTER. You will now have a REM with 1000 dots. Delete lines 4,5,6,7,8 & 9. You do not have to use 1000. You can use what ever you need in your program.

FIG. 1

9000 PRINT "ADDRESS TO START ?":
9010 INPUT A
9020 PRINT A
9030 LET A$=""
9040 LET X=0
9050 IF A$="" THEN INPUT A$
9060 IF A$="S" THEN STOP
9070 IF X=0 THEN SCROLL
9080 IF X=0 THEN PRINT A:"": "";
9090 PRINT A$( TO 2);" ";
9100 POKE A,16* CODE A$+ CODE A$(2)-476
9110 LET A=A+1
9120 LET A$=A$(3 TO )
9130 LET X=X+1
9140 IF X=6 THEN GOTO 9040
9150 COTO 9050

FIG 2

D60BCD230F01
06002A8240E5
09444D2A2940
09222940210C
403E095E2356
D5EB09EB722B
7323233D2803
D118EEE1E501
E240A7ED4244
4DE1EDB821E3
403600233602
23C103037123
702336EA0B0B
23110100EB19
EB361BEDB036
7534CD2B0FC9

FIG 3

2 REM
4 PRINT "REM LENGTH ?"
5 INPUT N
6 POKE 16514.N-256* INT (N/256)
7 POKE 16515, INT (N/256)
8 RAND USR 16516

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