Home » Archimedes archive » Acorn User » AU 1995-06.adf » !StarInfo_StarInfo » Horman/Examples/MakeS

Horman/Examples/MakeS

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-06.adf » !StarInfo_StarInfo
Filename: Horman/Examples/MakeS
Read OK:
File size: 015F bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >MakeS
   20MODE 15:OFF
   30DIM s 8
   40!s=148
   50s!4=-1
   60SYS "OS_ReadVduVariables",s,s
   70s=!s
   80DIM c(48),t(48)
   90FOR i=0 TO 47
  100?s=i
  110c(i)=POINT(0,1023)
  120t(i)=TINT(0,1023)
  130NEXT
  140CLS
  150r=500
  160MOVE 540,512+r
  170FOR i=0 TO 1000
  180x=r*SINRAD(i*5)
  190y=r*COSRAD(i*5)
  200c=i*47/1000
  210GCOL c(c) TINT t(c)
  220MOVE 540,512
  230PLOT 85,540+x,512+y
  240r-=0.5
  250NEXT
  260*ScreenSave Spiral
� >MakeS

� 15:�
	� s 8
(
!s=148
2
s!4=-1
< ș "OS_ReadVduVariables",s,s
Fs=!s
P� c(48),t(48)
Z� i=0 � 47
d?s=i
nc(i)=�0,1023)
xt(i)=Ȝ(0,1023)
��
��
�	r=500
�� 540,512+r
�� i=0 � 1000
�x=r*��(i*5)
�y=r*��(i*5)
�c=i*47/1000
�� c(c) Ȝ t(c)
�
� 540,512
�� 85,540+x,512+y
�
r-=0.5
��
*ScreenSave Spiral
�
00000000  0d 00 0a 0c f4 20 3e 4d  61 6b 65 53 0d 00 14 0a  |..... >MakeS....|
00000010  eb 20 31 35 3a 87 0d 00  1e 09 de 20 73 20 38 0d  |. 15:...... s 8.|
00000020  00 28 0a 21 73 3d 31 34  38 0d 00 32 0a 73 21 34  |.(.!s=148..2.s!4|
00000030  3d 2d 31 0d 00 3c 20 c8  99 20 22 4f 53 5f 52 65  |=-1..< .. "OS_Re|
00000040  61 64 56 64 75 56 61 72  69 61 62 6c 65 73 22 2c  |adVduVariables",|
00000050  73 2c 73 0d 00 46 08 73  3d 21 73 0d 00 50 11 de  |s,s..F.s=!s..P..|
00000060  20 63 28 34 38 29 2c 74  28 34 38 29 0d 00 5a 0e  | c(48),t(48)..Z.|
00000070  e3 20 69 3d 30 20 b8 20  34 37 0d 00 64 08 3f 73  |. i=0 . 47..d.?s|
00000080  3d 69 0d 00 6e 11 63 28  69 29 3d b0 30 2c 31 30  |=i..n.c(i)=.0,10|
00000090  32 33 29 0d 00 78 13 74  28 69 29 3d c8 9c 28 30  |23)..x.t(i)=..(0|
000000a0  2c 31 30 32 33 29 0d 00  82 05 ed 0d 00 8c 05 db  |,1023)..........|
000000b0  0d 00 96 09 72 3d 35 30  30 0d 00 a0 0f ec 20 35  |....r=500..... 5|
000000c0  34 30 2c 35 31 32 2b 72  0d 00 aa 10 e3 20 69 3d  |40,512+r..... i=|
000000d0  30 20 b8 20 31 30 30 30  0d 00 b4 0f 78 3d 72 2a  |0 . 1000....x=r*|
000000e0  b5 b2 28 69 2a 35 29 0d  00 be 0f 79 3d 72 2a 9b  |..(i*5)....y=r*.|
000000f0  b2 28 69 2a 35 29 0d 00  c8 0f 63 3d 69 2a 34 37  |.(i*5)....c=i*47|
00000100  2f 31 30 30 30 0d 00 d2  12 e6 20 63 28 63 29 20  |/1000..... c(c) |
00000110  c8 9c 20 74 28 63 29 0d  00 dc 0d ec 20 35 34 30  |.. t(c)..... 540|
00000120  2c 35 31 32 0d 00 e6 14  f0 20 38 35 2c 35 34 30  |,512..... 85,540|
00000130  2b 78 2c 35 31 32 2b 79  0d 00 f0 0a 72 2d 3d 30  |+x,512+y....r-=0|
00000140  2e 35 0d 00 fa 05 ed 0d  01 04 16 2a 53 63 72 65  |.5.........*Scre|
00000150  65 6e 53 61 76 65 20 53  70 69 72 61 6c 0d ff     |enSave Spiral..|
0000015f