Home » Personal collection » Commodore disks » disk65a_programs_1.d64 » mandlebrot

mandlebrot

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 » Commodore disks » disk65a_programs_1.d64
Filename: mandlebrot
Read OK:
File size: 03D6 bytes
Load address: 0801
Exec address: 0000
File contents
    40 S=16:B=3:C=8:SM=1024:XC=.75:YC=0:H=3:W=3:POKE53281,4
    45 POKE53272,(PEEK(53272) AND 15) OR S
    50 POKE56578,PEEK(56578) OR 3
    55 POKE56576,(PEEK(56576) AND 252) ORB
    60 X=C*1024:H=INT(X/256):L=X-256*H
    65 POKE51,L:POKE52,H:POKE53282,4
    70 POKE55,L:POKE56,H:POKE53281,7
    75 POKE53272,(PEEK(53272) AND 241) ORC
    80 POKE53265,PEEK(53265) OR 32
    82 POKE53270,PEEK(53270) OR 16
    85 FOR J=SM TO SM+999
    90 POKEJ,10
    95 NEXT
   100 FOR J=X TO X+7999
   105 POKE J,0
   110 NEXT
   115 FORR=199TO0STEP-1:FORC=0TO319STEP2:CL=0:XB=XC-(W/2)+R*(W/199):YB=-2+R*.0201
   117 YB=YC-(H/2)+C*(H/319):U=XB:V=YB:GOTO 125
   120 Y=U^2-V^2+XB:Z=2*U*V+YB:U=Y:V=Z
   125 IF U^2+V^2>4 THEN 135
   130 CL=CL+1:IFCL<=22THEN120
   135 POKE24577,CL:GOSUB1020:POKE24576,R:NEXT:NEXT
   175 GETK$:IFK$<>" "THEN175
   180 POKE53265,PEEK(53265) AND 223
   185 POKE53272,(PEEK(53272) AND 240) OR4
   190 STOP
  1000 BYTE=X+7687-320*INT(R/8)-(RAND7)+INT(C/8)*8
  1005 BIT=7-(CAND7)
  1010 POKE BYTE,PEEK(BYTE) OR 2^BIT
  1015 RETURN
  1020 CL=INT(CL/4):CB=CL-INT(CL/4)*4
  1022 IFCB=0THENCL=2
  1025 IFCB=1THENCL=0
  1027 IFCB=2THENCL=3
  1028 IFCB=3THENCL=1
  1030 IF (CL AND 2)=2 THEN GOSUB1000
  1035 C=C+1:IF (CL AND 1)=1 THEN GOSUB1000
  1040 C=C-1:RETURN
  9876 FORJ=8*1024 TO 8*1024+7999:POKEJ,INT(RND(1)*255):NEXT

7(S�16:B�3:C�8:SM�1024:XC�.75:YC�0:H�3:W�3:�53281,4V-�53272,(�(53272) � 15) � Sn2�56578,�(56578) � 3�7�56576,(�(56576) � 252) �B�<X�C�1024:H��(X�256):L�X�256�H�A�51,L:�52,H:�53282,4�F�55,L:�56,H:�53281,7	K�53272,(�(53272) � 241) �C	P�53265,�(53265) � 322	R�53270,�(53270) � 16F	U� J�SM � SM�999P	Z�J,10V	_�i	d� J�X � X�7999s	i� J,0y	n��	s�R�199�0��1:�C�0�319�2:CL�0:XB�XC�(W�2)�R�(W�199):YB��2�R�.0201�	uYB�YC�(H�2)�C�(H�319):U�XB:V�YB:� 125
xY�U�2�V�2�XB:Z�2�U�V�YB:U�Y:V�Z!
}� U�2�V�2�4 � 1359
�CL�CL�1:�CL��22�120Z
��24577,CL:�1020:�24576,R:�:�o
��K$:�K$��" "�175�
��53265,�(53265) � 223�
��53272,(�(53272) � 240) �4�
���
�BYTE�X�7687�320��(R�8)�(R�7)��(C�8)�8�
�BIT�7�(C�7)�� BYTE,�(BYTE) � 2�BIT	��(�CL��(CL�4):CB�CL��(CL�4)�47��CB�0�CL�2F�CB�1�CL�0U�CB�2�CL�3d�CB�3�CL�1}� (CL � 2)�2 � �1000�C�C�1:� (CL � 1)�1 � �1000�C�C�1:���&�J�8�1024 � 8�1024�7999:�J,�(�(1)�255):�
7H(@s.16:b.3:c.8:sm.1024:xc..75:yc.0:h.3:w.3:.53281,4@vH-@.53272,(.(53272) . 15) . s@NH2@.56578,.(56578) . 3@.H7@.56576,(.(56576) . 252) .b@.H<@x.c.1024:h..(x.256):l.x.256.h@.Ha@.51,l:.52,h:.53282,4@.Hf@.55,l:.56,h:.53281,7@@Ik@.53272,(.(53272) . 241) .c@YIp@.53265,.(53265) . 32@2Ir@.53270,.(53270) . 16@fIu@. j.sm . sm.999@pIz@.j,10@vI.@.@IID@. j.x . x.7999@SII@. j,0@YIN@.@.IS@.r.199.0..1:.c.0.319.2:cl.0:xb.xc.(w.2).r.(w.199):yb..2.r..0201@.IU@yb.yc.(h.2).c.(h.319):u.xb:v.yb:. 125@KJX@y.u.2.v.2.xb:z.2.u.v.yb:u.y:v.z@!J.@. u.2.v.2.4 . 135@9J.@cl.cl.1:.cl..22.120@zJ.@.24577,cl:.1020:.24576,r:.:.@OJ.@.k$:.k$.." ".175@.J.@.53265,.(53265) . 223@.J.@.53272,(.(53272) . 240) .4@.J.@.@.J.Cbyte.x.7687.320..(r.8).(r.7)..(c.8).8@.J.Cbit.7.(c.7)@CK.C. byte,.(byte) . 2.bit@IK.C.@(K.Ccl..(cl.4):cb.cl..(cl.4).4@7K.C.cb.0.cl.2@fKAD.cb.1.cl.0@uKCD.cb.2.cl.3@DKDD.cb.3.cl.1@.KFD. (cl . 2).2 . .1000@.KKDc.c.1:. (cl . 1).1 . .1000@.KPDc.c.1:.@.K.&.j.8.1024 . 8.1024.7999:.j,.(.(1).255):.@@@
00000000  37 08 28 00 53 b2 31 36  3a 42 b2 33 3a 43 b2 38  |7.(.S.16:B.3:C.8|
00000010  3a 53 4d b2 31 30 32 34  3a 58 43 b2 2e 37 35 3a  |:SM.1024:XC..75:|
00000020  59 43 b2 30 3a 48 b2 33  3a 57 b2 33 3a 97 35 33  |YC.0:H.3:W.3:.53|
00000030  32 38 31 2c 34 00 56 08  2d 00 97 35 33 32 37 32  |281,4.V.-..53272|
00000040  2c 28 c2 28 35 33 32 37  32 29 20 af 20 31 35 29  |,(.(53272) . 15)|
00000050  20 b0 20 53 00 6e 08 32  00 97 35 36 35 37 38 2c  | . S.n.2..56578,|
00000060  c2 28 35 36 35 37 38 29  20 b0 20 33 00 8d 08 37  |.(56578) . 3...7|
00000070  00 97 35 36 35 37 36 2c  28 c2 28 35 36 35 37 36  |..56576,(.(56576|
00000080  29 20 af 20 32 35 32 29  20 b0 42 00 af 08 3c 00  |) . 252) .B...<.|
00000090  58 b2 43 ac 31 30 32 34  3a 48 b2 b5 28 58 ad 32  |X.C.1024:H..(X.2|
000000a0  35 36 29 3a 4c b2 58 ab  32 35 36 ac 48 00 c8 08  |56):L.X.256.H...|
000000b0  41 00 97 35 31 2c 4c 3a  97 35 32 2c 48 3a 97 35  |A..51,L:.52,H:.5|
000000c0  33 32 38 32 2c 34 00 e1  08 46 00 97 35 35 2c 4c  |3282,4...F..55,L|
000000d0  3a 97 35 36 2c 48 3a 97  35 33 32 38 31 2c 37 00  |:.56,H:.53281,7.|
000000e0  00 09 4b 00 97 35 33 32  37 32 2c 28 c2 28 35 33  |..K..53272,(.(53|
000000f0  32 37 32 29 20 af 20 32  34 31 29 20 b0 43 00 19  |272) . 241) .C..|
00000100  09 50 00 97 35 33 32 36  35 2c c2 28 35 33 32 36  |.P..53265,.(5326|
00000110  35 29 20 b0 20 33 32 00  32 09 52 00 97 35 33 32  |5) . 32.2.R..532|
00000120  37 30 2c c2 28 35 33 32  37 30 29 20 b0 20 31 36  |70,.(53270) . 16|
00000130  00 46 09 55 00 81 20 4a  b2 53 4d 20 a4 20 53 4d  |.F.U.. J.SM . SM|
00000140  aa 39 39 39 00 50 09 5a  00 97 4a 2c 31 30 00 56  |.999.P.Z..J,10.V|
00000150  09 5f 00 82 00 69 09 64  00 81 20 4a b2 58 20 a4  |._...i.d.. J.X .|
00000160  20 58 aa 37 39 39 39 00  73 09 69 00 97 20 4a 2c  | X.7999.s.i.. J,|
00000170  30 00 79 09 6e 00 82 00  bd 09 73 00 81 52 b2 31  |0.y.n.....s..R.1|
00000180  39 39 a4 30 a9 ab 31 3a  81 43 b2 30 a4 33 31 39  |99.0..1:.C.0.319|
00000190  a9 32 3a 43 4c b2 30 3a  58 42 b2 58 43 ab 28 57  |.2:CL.0:XB.XC.(W|
000001a0  ad 32 29 aa 52 ac 28 57  ad 31 39 39 29 3a 59 42  |.2).R.(W.199):YB|
000001b0  b2 ab 32 aa 52 ac 2e 30  32 30 31 00 e7 09 75 00  |..2.R..0201...u.|
000001c0  59 42 b2 59 43 ab 28 48  ad 32 29 aa 43 ac 28 48  |YB.YC.(H.2).C.(H|
000001d0  ad 33 31 39 29 3a 55 b2  58 42 3a 56 b2 59 42 3a  |.319):U.XB:V.YB:|
000001e0  89 20 31 32 35 00 0b 0a  78 00 59 b2 55 ae 32 ab  |. 125...x.Y.U.2.|
000001f0  56 ae 32 aa 58 42 3a 5a  b2 32 ac 55 ac 56 aa 59  |V.2.XB:Z.2.U.V.Y|
00000200  42 3a 55 b2 59 3a 56 b2  5a 00 21 0a 7d 00 8b 20  |B:U.Y:V.Z.!.}.. |
00000210  55 ae 32 aa 56 ae 32 b1  34 20 a7 20 31 33 35 00  |U.2.V.2.4 . 135.|
00000220  39 0a 82 00 43 4c b2 43  4c aa 31 3a 8b 43 4c b3  |9...CL.CL.1:.CL.|
00000230  b2 32 32 a7 31 32 30 00  5a 0a 87 00 97 32 34 35  |.22.120.Z....245|
00000240  37 37 2c 43 4c 3a 8d 31  30 32 30 3a 97 32 34 35  |77,CL:.1020:.245|
00000250  37 36 2c 52 3a 82 3a 82  00 6f 0a af 00 a1 4b 24  |76,R:.:..o....K$|
00000260  3a 8b 4b 24 b3 b1 22 20  22 a7 31 37 35 00 89 0a  |:.K$.." ".175...|
00000270  b4 00 97 35 33 32 36 35  2c c2 28 35 33 32 36 35  |...53265,.(53265|
00000280  29 20 af 20 32 32 33 00  a8 0a b9 00 97 35 33 32  |) . 223......532|
00000290  37 32 2c 28 c2 28 35 33  32 37 32 29 20 af 20 32  |72,(.(53272) . 2|
000002a0  34 30 29 20 b0 34 00 ae  0a be 00 90 00 d8 0a e8  |40) .4..........|
000002b0  03 42 59 54 45 b2 58 aa  37 36 38 37 ab 33 32 30  |.BYTE.X.7687.320|
000002c0  ac b5 28 52 ad 38 29 ab  28 52 af 37 29 aa b5 28  |..(R.8).(R.7)..(|
000002d0  43 ad 38 29 ac 38 00 e8  0a ed 03 42 49 54 b2 37  |C.8).8.....BIT.7|
000002e0  ab 28 43 af 37 29 00 03  0b f2 03 97 20 42 59 54  |.(C.7)...... BYT|
000002f0  45 2c c2 28 42 59 54 45  29 20 b0 20 32 ae 42 49  |E,.(BYTE) . 2.BI|
00000300  54 00 09 0b f7 03 8e 00  28 0b fc 03 43 4c b2 b5  |T.......(...CL..|
00000310  28 43 4c ad 34 29 3a 43  42 b2 43 4c ab b5 28 43  |(CL.4):CB.CL..(C|
00000320  4c ad 34 29 ac 34 00 37  0b fe 03 8b 43 42 b2 30  |L.4).4.7....CB.0|
00000330  a7 43 4c b2 32 00 46 0b  01 04 8b 43 42 b2 31 a7  |.CL.2.F....CB.1.|
00000340  43 4c b2 30 00 55 0b 03  04 8b 43 42 b2 32 a7 43  |CL.0.U....CB.2.C|
00000350  4c b2 33 00 64 0b 04 04  8b 43 42 b2 33 a7 43 4c  |L.3.d....CB.3.CL|
00000360  b2 31 00 7d 0b 06 04 8b  20 28 43 4c 20 af 20 32  |.1.}.... (CL . 2|
00000370  29 b2 32 20 a7 20 8d 31  30 30 30 00 9c 0b 0b 04  |).2 . .1000.....|
00000380  43 b2 43 aa 31 3a 8b 20  28 43 4c 20 af 20 31 29  |C.C.1:. (CL . 1)|
00000390  b2 31 20 a7 20 8d 31 30  30 30 00 a8 0b 10 04 43  |.1 . .1000.....C|
000003a0  b2 43 ab 31 3a 8e 00 d5  0b 94 26 81 4a b2 38 ac  |.C.1:.....&.J.8.|
000003b0  31 30 32 34 20 a4 20 38  ac 31 30 32 34 aa 37 39  |1024 . 8.1024.79|
000003c0  39 39 3a 97 4a 2c b5 28  bb 28 31 29 ac 32 35 35  |99:.J,.(.(1).255|
000003d0  29 3a 82 00 00 00                                 |):....|
000003d6