Home » Archimedes archive » Acorn User » AU 1998-03 A.adf » Features » RTR/ScrewD

RTR/ScrewD

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 1998-03 A.adf » Features
Filename: RTR/ScrewD
Read OK:
File size: 00C1 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM> Virtual Screw draw test
   20MODE 21
   30PRINT"Screw test"
   40r=30
   50p%=300
   51l%=300
   70th=0
   80REPEAT
  100x%=p%+r*COS(th)
  112IF th=0 THEN MOVE x%,l% ELSE DRAW x%,l%
  113l%+=2
  120th+=0.1
  130r+=.2
  140UNTIL r>60
  150END
  160

�> Virtual Screw draw test
� 21
�"Screw test"
(r=30
2
p%=300
3
l%=300
Fth=0
P�
dx%=p%+r*�(th)
p� th=0 � � x%,l% � � x%,l%
q	l%+=2
xth+=0.1
�	r+=.2
�
� r>60
��
�
�
00000000  0d 00 0a 1e f4 3e 20 56  69 72 74 75 61 6c 20 53  |.....> Virtual S|
00000010  63 72 65 77 20 64 72 61  77 20 74 65 73 74 0d 00  |crew draw test..|
00000020  14 08 eb 20 32 31 0d 00  1e 11 f1 22 53 63 72 65  |... 21....."Scre|
00000030  77 20 74 65 73 74 22 0d  00 28 08 72 3d 33 30 0d  |w test"..(.r=30.|
00000040  00 32 0a 70 25 3d 33 30  30 0d 00 33 0a 6c 25 3d  |.2.p%=300..3.l%=|
00000050  33 30 30 0d 00 46 08 74  68 3d 30 0d 00 50 05 f5  |300..F.th=0..P..|
00000060  0d 00 64 11 78 25 3d 70  25 2b 72 2a 9b 28 74 68  |..d.x%=p%+r*.(th|
00000070  29 0d 00 70 1e e7 20 74  68 3d 30 20 8c 20 ec 20  |)..p.. th=0 . . |
00000080  78 25 2c 6c 25 20 8b 20  df 20 78 25 2c 6c 25 0d  |x%,l% . . x%,l%.|
00000090  00 71 09 6c 25 2b 3d 32  0d 00 78 0b 74 68 2b 3d  |.q.l%+=2..x.th+=|
000000a0  30 2e 31 0d 00 82 09 72  2b 3d 2e 32 0d 00 8c 0a  |0.1....r+=.2....|
000000b0  fd 20 72 3e 36 30 0d 00  96 05 e0 0d 00 a0 04 0d  |. r>60..........|
000000c0  ff                                                |.|
000000c1