Home » Personal collection » Acorn hard disk » files » BallBot » Samples/Processing/DistFind

Samples/Processing/DistFind

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 » Personal collection » Acorn hard disk » files » BallBot
Filename: Samples/Processing/DistFind
Read OK:
File size: 00B7 bytes
Load address: 0000
Exec address: 0000
File contents
   10MODE 0
   20*SPOOL angles
   30FORl=1TO256
   40ang=0.5+l*30/256
   50d=0.1/TAN(RAD(ang))
   60rd=INT(d/3*255)
   70IF rd>255 THEN rd=255
   80w=DEG(ATN(0.03/d))/30*128
   90PRINTl,INT(d*1000),rd,INT(w+0.5)
  100NEXT
  110*SPOOL

� 0
*SPOOL angles
�l=1�256
(ang=0.5+l*30/256
2d=0.1/�(�(ang))
<rd=�(d/3*255)
F� rd>255 � rd=255
Pw=�(�(0.03/d))/30*128
Z�l,�(d*1000),rd,�(w+0.5)
d�
n
*SPOOL
�
00000000  0d 00 0a 07 eb 20 30 0d  00 14 11 2a 53 50 4f 4f  |..... 0....*SPOO|
00000010  4c 20 61 6e 67 6c 65 73  0d 00 1e 0c e3 6c 3d 31  |L angles.....l=1|
00000020  b8 32 35 36 0d 00 28 14  61 6e 67 3d 30 2e 35 2b  |.256..(.ang=0.5+|
00000030  6c 2a 33 30 2f 32 35 36  0d 00 32 13 64 3d 30 2e  |l*30/256..2.d=0.|
00000040  31 2f b7 28 b2 28 61 6e  67 29 29 0d 00 3c 11 72  |1/.(.(ang))..<.r|
00000050  64 3d a8 28 64 2f 33 2a  32 35 35 29 0d 00 46 15  |d=.(d/3*255)..F.|
00000060  e7 20 72 64 3e 32 35 35  20 8c 20 72 64 3d 32 35  |. rd>255 . rd=25|
00000070  35 0d 00 50 19 77 3d 9d  28 99 28 30 2e 30 33 2f  |5..P.w=.(.(0.03/|
00000080  64 29 29 2f 33 30 2a 31  32 38 0d 00 5a 1c f1 6c  |d))/30*128..Z..l|
00000090  2c a8 28 64 2a 31 30 30  30 29 2c 72 64 2c a8 28  |,.(d*1000),rd,.(|
000000a0  77 2b 30 2e 35 29 0d 00  64 05 ed 0d 00 6e 0a 2a  |w+0.5)..d....n.*|
000000b0  53 50 4f 4f 4c 0d ff                              |SPOOL..|
000000b7