home *** CD-ROM | disk | FTP | other *** search
- 10 rem mutate!indexer
- 20 rem copyright 1992
- 30 rem compute publications intl ltd
- 40 rem all rights reserved
- 50 rem
- 60 rem all mutate! programs & fonts
- 70 rem written by gary noakes
- 80 rem
- 90 poke53280,0:poke53281,0:print"[147]":clr:i1$=" [211]tand [194]y..."
- 100 i2$=" [195]ompleted ":fi$="$:m!*":dima$,b$,f,g,i,lm,t,x,fo$(73)
- 110 print"[147][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185]"
- 120 print"[153] [205] [213] [212] [193] [212] [197] ! "
- 130 print"[184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]":printspc(14)"[155][198]ont [201]ndexer"
- 140 print" [146] [155][208]lace disk in device 8- press [210][197][212][213][210][206]"
- 150 getg$:ifg$<>chr$(13)then150
- 160 poke214,7:print
- 170 print" [146] [155][211]earching directory for "+chr$(34)+"[205]!"+chr$(34)+" fonts."
- 180 printi1$:open3,8,0,"$0:m!*":poke781,3:sys65478:geta$,a$
- 190 geta$,a$:ifa$=""then230
- 200 geta$,b$
- 210 geta$:ifa$=""thenlm=lm+1:goto190
- 220 fo$(lm)=fo$(lm)+a$:goto210
- 230 close3:sys65484
- 240 poke214,8:print:printi2$
- 250 print" [146] [155][195]onverting filenames into arrays.":printi1$
- 260 lm=lm-2:iflm>30thenlm=30
- 270 fori=1tolm:fo$(i)=mid$(fo$(i),5,17):next
- 280 fori=1tolm:b$="":forx=1to16:a$=mid$(fo$(i),x,1):ifa$=chr$(34)thena$="":x=17
- 290 b$=b$+a$:next:fo$(i)=b$:next
- 300 poke214,10:print:printi2$
- 310 print" [146] [155][211]orting filenames alphabetically.":printi1$
- 320 x=0:t=0:i=0:g=lm:a$=""
- 330 g=int(g/2):ifg=0then380
- 340 f=0:fori=1to(lm-g):x=x+1:iffo$(i)<fo$(i+g)then360
- 350 a$=fo$(i):fo$(i)=fo$(i+g):fo$(i+g)=a$:t=t+1:f=1
- 360 next:iffthen340
- 370 goto330
- 380 poke214,12:print:printi2$
- 390 print" [146] [155][211]cratching old "+chr$(34)+"[205][213][212][193][212][197]![201][206][196][197][216]"+chr$(34)+" file."
- 400 printi1$:open15,8,15:print#15,"s0:mutate!index":print#15,"ui"
- 410 close15:poke214,14:print:printi2$
- 420 print" [146] [155][215]riting new "+chr$(34)+"[205][213][212][193][212][197]![201][206][196][197][216]"+chr$(34)+" file."
- 430 printi1$:open2,8,2,"mutate!index,s,w":print#2,lm:fori=1tolm:print#2,fo$(i)
- 440 next:close2:poke214,16:print:printi2$:fori=1to2000:next
- 450 print"[147][155]"spc(10)"[201]ndex another disk?":printspc(17)"<[217]/[206]>"
- 460 getg$:ifg$="n"thenprint"[147]":end
- 470 ifg$<>"y"then460
- 480 goto90
-