Home » Personal collection » Acorn tapes » Own_Work » box04_tape16a_acorn_d90_public_domain.wav » DNA

DNA

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 tapes » Own_Work » box04_tape16a_acorn_d90_public_domain.wav
Filename: DNA
Read OK:
File size: 01E6 bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   10REM DNA
   20REM Simple DNA simulation
   30REM (c) Electron User Club
   40:
   50MODE4
   60VDU23;8202;0;0;0;
   70VDU19,0,7;0;19,1,0;0;
   80DIM X%(80),Y%(80)
   90REPEAT
  100VDU29,640;824;
  110REPEAT
  120R%=RND(60)+20
  130UNTILR%MOD2=1
  140FORT%=0TO R%
  150X%(T%)=SIN(RAD(360*(T%/R%)))*200
  160Y%(T%)=COS(RAD(360*(T%/R%)))*200
  170NEXTT%
  180L%=0
  190M%=10
  200REPEAT
  210TIME=0
  220MOVEX%(L%),Y%(L%)
  230L%=(L%+1) MOD R%
  240PLOT0,0,-32
  250DRAWX%(L%),Y%(L%)
  260MOVEX%(M%),Y%(M%)
  270M%=(M%+1) MOD R%
  280PLOT0,0,-32
  290DRAWX%(M%),Y%(M%)
  300DRAWX%(L%),Y%(L%)
  310VDU11
  320REPEATUNTILTIME>1
  330UNTILINKEY(-99)
  340UNTILFALSE

	� DNA
� Simple DNA simulation
� (c) Electron User Club
(:
2�4
<�23;8202;0;0;0;
F�19,0,7;0;19,1,0;0;
P� X%(80),Y%(80)
Z�
d�29,640;824;
n�
xR%=�(60)+20
��R%�2=1
�
�T%=0� R%
� X%(T%)=�(�(360*(T%/R%)))*200
� Y%(T%)=�(�(360*(T%/R%)))*200
��T%
�L%=0
�	M%=10
��
��=0
��X%(L%),Y%(L%)
�L%=(L%+1) � R%
��0,0,-32
��X%(L%),Y%(L%)
�X%(M%),Y%(M%)
M%=(M%+1) � R%
�0,0,-32
"�X%(M%),Y%(M%)
,�X%(L%),Y%(L%)
6�11
@	���>1
J��(-99)
T��
�
00000000  0d 00 0a 09 f4 20 44 4e  41 0d 00 14 1b f4 20 53  |..... DNA..... S|
00000010  69 6d 70 6c 65 20 44 4e  41 20 73 69 6d 75 6c 61  |imple DNA simula|
00000020  74 69 6f 6e 0d 00 1e 1c  f4 20 28 63 29 20 45 6c  |tion..... (c) El|
00000030  65 63 74 72 6f 6e 20 55  73 65 72 20 43 6c 75 62  |ectron User Club|
00000040  0d 00 28 05 3a 0d 00 32  06 eb 34 0d 00 3c 13 ef  |..(.:..2..4..<..|
00000050  32 33 3b 38 32 30 32 3b  30 3b 30 3b 30 3b 0d 00  |23;8202;0;0;0;..|
00000060  46 17 ef 31 39 2c 30 2c  37 3b 30 3b 31 39 2c 31  |F..19,0,7;0;19,1|
00000070  2c 30 3b 30 3b 0d 00 50  13 de 20 58 25 28 38 30  |,0;0;..P.. X%(80|
00000080  29 2c 59 25 28 38 30 29  0d 00 5a 05 f5 0d 00 64  |),Y%(80)..Z....d|
00000090  10 ef 32 39 2c 36 34 30  3b 38 32 34 3b 0d 00 6e  |..29,640;824;..n|
000000a0  05 f5 0d 00 78 0f 52 25  3d b3 28 36 30 29 2b 32  |....x.R%=.(60)+2|
000000b0  30 0d 00 82 0b fd 52 25  83 32 3d 31 0d 00 8c 0d  |0.....R%.2=1....|
000000c0  e3 54 25 3d 30 b8 20 52  25 0d 00 96 20 58 25 28  |.T%=0. R%... X%(|
000000d0  54 25 29 3d b5 28 b2 28  33 36 30 2a 28 54 25 2f  |T%)=.(.(360*(T%/|
000000e0  52 25 29 29 29 2a 32 30  30 0d 00 a0 20 59 25 28  |R%)))*200... Y%(|
000000f0  54 25 29 3d 9b 28 b2 28  33 36 30 2a 28 54 25 2f  |T%)=.(.(360*(T%/|
00000100  52 25 29 29 29 2a 32 30  30 0d 00 aa 07 ed 54 25  |R%)))*200.....T%|
00000110  0d 00 b4 08 4c 25 3d 30  0d 00 be 09 4d 25 3d 31  |....L%=0....M%=1|
00000120  30 0d 00 c8 05 f5 0d 00  d2 07 d1 3d 30 0d 00 dc  |0..........=0...|
00000130  12 ec 58 25 28 4c 25 29  2c 59 25 28 4c 25 29 0d  |..X%(L%),Y%(L%).|
00000140  00 e6 12 4c 25 3d 28 4c  25 2b 31 29 20 83 20 52  |...L%=(L%+1) . R|
00000150  25 0d 00 f0 0c f0 30 2c  30 2c 2d 33 32 0d 00 fa  |%.....0,0,-32...|
00000160  12 df 58 25 28 4c 25 29  2c 59 25 28 4c 25 29 0d  |..X%(L%),Y%(L%).|
00000170  01 04 12 ec 58 25 28 4d  25 29 2c 59 25 28 4d 25  |....X%(M%),Y%(M%|
00000180  29 0d 01 0e 12 4d 25 3d  28 4d 25 2b 31 29 20 83  |)....M%=(M%+1) .|
00000190  20 52 25 0d 01 18 0c f0  30 2c 30 2c 2d 33 32 0d  | R%.....0,0,-32.|
000001a0  01 22 12 df 58 25 28 4d  25 29 2c 59 25 28 4d 25  |."..X%(M%),Y%(M%|
000001b0  29 0d 01 2c 12 df 58 25  28 4c 25 29 2c 59 25 28  |)..,..X%(L%),Y%(|
000001c0  4c 25 29 0d 01 36 07 ef  31 31 0d 01 40 09 f5 fd  |L%)..6..11..@...|
000001d0  91 3e 31 0d 01 4a 0b fd  a6 28 2d 39 39 29 0d 01  |.>1..J...(-99)..|
000001e0  54 06 fd a3 0d ff                                 |T.....|
000001e6
DNA.m0
DNA.m1
DNA.m2
DNA.m4
DNA.m5