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,4 V- �53272,(�(53272) � 15) � S n2 �56578,�(56578) � 3 �7 �56576,(�(56576) � 252) �B �<