Try These

See all articles from T-S Horizons n13
Author(s): John Bell
Publication: T-S Horizons
Pub Details: T-S Horizons n13 (Issue 13)
Date: Apri 1985
Pages: 8-9

The dear, departed magazine for Timex computers, Sync, ran a regular feature called “Try This” which featured “short programs to show off your computer, impress your family and friends, and tickle your imagination.” Now to continue this tradition TSH proudly presents “Try These.” This month we’ve used contributed programs plus some others shamelessly lifted from other magazines and newsletters.

However from now on we hope to use your submissionsalmost exclusively. Send yours to “Try These”, TS Horizons, 2022 Summit Street, Portsmouth, Ohio 45662.

TS1000/1500/ZX81 16K

This program was submitted by Robert Harting, a former writer for Sync. Bob says use SLOW mode.

   1 REM 12345
5 POKE 16514,62
10 POKE 16515,30
15 POKE 16516,237
20 POKE 16517,71
25 POKE 16518,201
50 PRINT AT 9,2;"[illegible]"
60 PRINT AT 10,3;"[illegible]"
70 PRINT AT 11,3;"[illegible]"
80 PRINT AT 12,3;"[illegible]"
90 PRINT AT 13,3;"[illegible]"
100 LET L=USR 16514
110 LET K=RND*128
115 PRINT AT 20,3;"KEY P THEN S TO RESTART"
120 IF INKEY$="P" THEN PAUSE 4E4
130 IF INKEY$="S" THEN LET K=30
140 POKE 16515,K
150 FOR N=1 TO 100
160 NEXT N
170 GOTO 100
200 SAVE "TSH"
210 GOTO 1
Lines 50-90 as printed, with inverse-graphics strings
Lines 50-90 as printed, with inverse-graphics strings

Our thanks to Robert Harting, [address omitted].

TS1000/1500/ZX81 16K

The QL is capable of creating and scrolling computer “windows,” but the following program called “Window 81” uses the technique on the TS1000. It was written by John Mitchell, of Doncaster, England and printed in the February 1985 issue of Sinclair User, an English magazine.

   1 PRINT 1+2+3+4+5+6+7+8+9+10+11+12+13
2 REM WINDOW A=USR 16514
3 REM WINDOW B=USR 16527
4 REM WINDOW C=USR 16544
5 REM WINDOW D=USR 16561
10 POKE 16510,0
15 POKE 16513,234
20 LET A$="2A0C40CDC24021210E223940C92A0C4011100019CDC2"
30 LET A$=A$+"4021110E223940C92A0C40116B0119CDC24021210322"
40 LET A$=A$+"3940C92A0C40117B0119CDC240211103223940C91121"
50 LET A$=A$+"00ED52060BC519E5D523D5C1E5D109011000EDB0D1E1"
60 LET A$=A$+"C110EC061023360010FB110F00ED52220E40C9"
70 IF LEN A$<>214 THEN STOP
80 FAST
90 FOR N=16514 TO 16620
100 POKE N,CODE A$*16+CODE A$(2)-476
110 LET A$=A$(3 TO )
120 NEXT N
130 SLOW
1000 REM DEMONSTRATION
1005 FOR N=0 TO 127
1010 RAND USR 16514
1015 PRINT CHR$ N;"-";CHR$ N
1020 RAND USR 16527
1025 PRINT CHR$ (N+128);"-";CHR$ (N+128)
1030 RAND USR 16544
1035 PRINT CHR$ (N+128);"-";CHR$ (N+128)
1040 RAND USR 16561
1045 PRINT CHR$ N;"-";CHR$ N
1050 NEXT N

TS2068

This short program was submitted by Bernard Bush as part of a larger article on “Playing With The Character Set”, which may be published in a future issue.

 5 LET b=0
10 LET a=23606
20 PRINT
30 PRINT "T-S HORIZONS"
40 POKE A,B
50 LIST
60 PAUSE 250
70 LET B=B+1
75 POKE 23682,-1
80 GO TO 20

TS2068

The following program by T. Knyszek appears in the April issue of “RAMTOP“, the Cleveland User Group newsletter. (See User Group listing for address).

  10 REM HI RES HAT by T Knyszek
20 PLOT 0,0: DRAW 0,175: DRAW 255,0: DRAW 0,-175: DRAW -255,0
30 REM Lines 40 To 130 calcu- late X and Y for PLOTTING.
35 LET xs=.78: LET ys=.85
40 LET p=128: LET q=95: LET xp=144: LET xr=1.5*PI: LET yp=56: LET yr=1
50 LET zp=64: LET xf=xr/xp: LET yf=yp/yr: LET zf=xr/zp: LET xq=xp/zp
60 FOR k=-zp TO zp
70 LET zt=k*xq
80 LET xl=INT (.5+SQR (xp*xp-zt*zt))
90 FOR t=-xl TO xl
100 LET xt=SQR (t*t+zt*zt)*xf
110 LET yy=(SIN (xt)+.4*SIN (3*xt))*yf
120 LET x=(xs*(t+k))+p
130 LET y=(ys*(yy-k))+q
140 PLOT x,y
150 NEXT t
160 NEXT k
170 STOP
Hi-res hat drawn by the program
Hi-res hat drawn by the program

TS2068

This program appeared in the Triangle Sinclair Newsletter. (See User Group listing).

  10 REM **Steve Scoville's
15 REM Pastime
20 REM TRIANGLE SINCLAIR USER GROUP
50 INPUT "Type a number ";n$
60 IF n$="c" OR n$="C" THEN CLS : GO TO 50
70 LET n=VAL n$: PRINT AT 0,0;"Input ";n;" produces : "
100 FOR i=1 TO 85 STEP n
110 PLOT 213-i,88
120 DRAW i-85,i
130 PLOT 43+i,88
140 DRAW 85-i,i
150 PLOT 213-i,88
160 DRAW i-85,-i
170 PLOT 43+i,88
180 DRAW 85-i,-i
190 NEXT i
200 GO TO 50
Input 5 produces : (star pattern)
Input 5 produces : (star pattern)

Let us know how you like the new feature. And if you send in a program let us know if you don’t want you mailing address printed with the program.

TSH

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