home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 33
/
64er_Magazin_Sonderheft_33_19xx_Markt__Technik_de_Side_B.d64
/
diskordner
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
4KB
|
122 lines
0 rem =========================
1 rem diskordner cbm 64 v2.0
2 rem (/) by nikolaus heusler
3 rem zwengauerweg 18
4 rem 8000 muenchen 71
5 rem tel. 089/792940
6 rem v=2.0, rev 3 vom 070188
7 rem =========================
8 :
9 poke1,55:data120,177,216,145,216,200,208,249,230,217,208,245,76,221,253
10 ifpeek(49153)><93thenload"diskordner.mc",8,8
15 d2=664:rs$=" [160]
16 [129]i[178]828[164]842:[135]q:[151]i,q:[130]:[158]828:[151]1,53:[151]650,128:[158]49152
17 [151]53280,.:[151]53281,.
18 [134]n$(255),b%(255)
20 [153]"loadpoke"rs$;
21 [153]" str$ i s k o r d n e r (NULL)2.0 ";
22 [153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab( ";
23 [153]" (NULL)erteilt asciles optimal auf str$isketten ";
25 [153]rs$" (c) nh-221187-arr valin (NULL)(NULL)(NULL) (NULL)rogramm ";
26 [153]rs$
28 [151]59639,15
29 [137]500
30 [141]1020:[153]"peekitte geben (NULL)ie die (NULL)amen und (NULL)aengen
32 print"(in [194]locks) ein !
34 [153]" valingabe von '?': ascehler
36 print" '*': [197]nde
38 [153]"(NULL)r. (NULL)ame peeklocks
39 az=1:print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]
45 [151]781,[194](214):[158]59903:[153][201](" "[170][196](az),3);
50 [141]1000:n$(az)[178]"":[133]" ";n$(az)
52 [139]n$(az)[179][177]"?"[167]58
54 [139][194](214)[177]17[167]az[178]az[171]1:[153]"on";
56 [153]"on";:[137]45
58 [139]n$(az)[178]""[167]56
60 [139]n$(az)[178]"*"[167]72
62 b$[178]"":[153]"on "[163]23);:[141]1000:[133]b$:[139]b$[178]"?"[167]56
64 [139]b$[178]""[167]62
66 b[178][197](b$):[139]b[179]1[176]b[177]di[167]62
68 b%(az)[178]b:[153]"on"[163]23)"close
70 az=az+1:goto45
72 ifaz=1then56
74 az=az-1
75 fori=1toaz:sys49155,b%(i),i:next:poke59639,7
76 gosub1020:print"[194]itte [196]rucker bereitmachen und [210][197][212][213][210][206] druecken !
78 [151]198,.:[146]198,1
79 [153]"(NULL)(NULL). (NULL)it langen (NULL)artezeiten muss gerech- net werden !
80 open4,4,7
81 print"[218]um [194]eschleunigen _[192] [146] gedrueckt lassen und auf [210]eaktion warten !
82 [152]4,"valmpfohlene (NULL)erteilung der asciles:
84 print:print#4,"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]
100 [141]1010:[139]su[179]di[167]300
102 v[178].:vv[178].:zm[178]1
104 [158]49164:[139][194](5)[178].[167]400
110 [141]1030
111 [158]49158,di[171]vv,di,(20000[171]v[172]2500)[173]zm
112 [139][194](2)[167][141]200:[137]100
114 [139]v[179]7[175]v%[178].[167]v[178]v[170]1:[137]116
115 v%[178]1:v[178]7.2
116 vv[178]vv[170]1:[137]110
200 fl[178]1[170]fl:[152]4:[152]4:[152]4,"atnuf str$isk (NULL)r."fl":":[152]4:su[178].
202 [129]i[178]1[164][194](2):n[178][194](52479[170]i)
204 [152]4,[200](n$(n)[170]" ",20);
206 [152]4,[201](" "[170][196](b%(n))[170]" peeklocks",10):su[178]su[170]b%(n):[130]
208 [152]4:[152]4,"freie peeklocks:"d2[171]su" asciles:"i[171]1:vc[178]vc[170]i[171]1:gb[178]gb[170]d2[171]su
210 [142]
300 [158]49164:[139][194](5)[178].[167]400
302 [158]49158,su,su,65535:[141]200
400 [152]4:[152]4:[152]4,"*** ascertig ! ***
402 print#4:print#4,"[197]s wurden"vc"von"az"[198]iles verteilt
404 [152]4,"atnnzahl str$isketten:"fl
406 [152]4,"ascreie peeklocks auf diesen str$isketten:"gb:[160]4
408 [153]"ascval(NULL)(NULL)right$chr$ !!!":[158]49164
409 [153]"atnnzahl str$isketten:"fl
410 [139][194](5)[177].[176]az[179][177]vc[167][153]"???(NULL)ystemfehler
412 end
500 print"[152][199]ewuenschte [193]nzahl freie [194]locks pro
502 [141]1002:[133]"str$isk 3cmdcmdcmd";fr:[139]fr[179].[176]fr[177]d2[171]1[167][153]"onon":[137]502
504 di[178]d2[171]fr:[153]"atnutomatischer valinzug der ascilenamen oder
506 print"manuelle [197]ingabe ? [[193]/[205]/_]
508 [161]a$:[139]a$[178]"_"[167][138]
510 [139]a$[178]"m"[167]30
512 [139]a$[177][179]"a"[167]508
520 [141]1020:[153]"atnutmatischer valinzug. (NULL)teuerung:
522 print" f1 [146][145][157][157][157][157][164][164][164][164] = [196]ieses [198]ile uebernehmen
524 [153]" f3 wait = peeklocklaenge dieses asciles
526 print" = zur [204]aenge des letzten addie-
528 [153]" totototo ren, nicht uebernehmen
530 print" f5 [146] = [196]ieses [198]ile ueberspringen
532 [151]59639,15
540 [153]"peekitte str$isk valinlegen ! ((NULL)val(NULL)(NULL)(NULL)(NULL))":[151]198,.:[146]198,1:xl[178].
542 [160]2:[159]2,8,0,"$0":[161]#2,a$,a$
544 [161]#2,a$,a$,l$,h$:bl[178][198](l$[170][199](.))[170]256[172][198](h$[170][199](.))
546 [161]#2,a$:[139]a$[179][177][199](34)[175]a$[177]""[167]546
547 [139]a$[178]""[167]580
548 nm$[178]"
550 get#2,a$:ifa$<>chr$(34)thennm$=nm$+a$:goto550
551 get#2,a$:ifa$then551
552 ifxl=.thenxl=1:goto544
553 gosub600:poke198,.
556 geta$:ifa$="[135]"then544
558 ifa$="[134]"andaz>.then570
560 ifa$<>"[133]"then556
562 print"[145]"tab(27)"[186][160][160]":az=az+1:n$(az)=nm$:b%(az)=bl:goto544
570 b%(az)=b%(az)+bl:nm$=n$(az):bl=b%(az):print"[145][145]":gosub600
572 print"[145]"tab(27)"[186] ":goto544
580 print"[145] [206]och eine [196]iskette ? [[202]/[206]] [160]
582 [161]a$:[139]a$[178]"n"[167]75
584 [139]a$[179][177]"j"[167]582
586 [153]"onon":[137]540
600 bl$[178][196](bl):bl$[178][201](" "[170]bl$[170]" ",9)
602 [153]"on"bl$nm$[200](rs$,18[171][195](nm$))"??? ":[142]
1000 [151]198,2:[151]631,34:[151]632,20:[142]
1002 [151]198,3:[151]631,34:[151]632,20:[151]633,51:[142]
1010 [158]49161:su[178][194](2)[170]256[172][194](3):[142]
1020 [129]x[178]8[164]24:[151]781,x:[158]59903:[130]:[151]214,8:[158]58732:[142]
1030 [153]"right$n atnrbeit: str$isk"1[170]fl"cmd, max.frei:"d2[171]di[170]vv"cmd close
1032 print"max.[214]ersuche:"int((20000-v*2500)/zm)"[157] [160]
1034 [153]"(NULL)umme:"su"cmd, atnnz.asciles: noch"[194](5)"cmd closeononon
1035 geta$:ifa$="_"thenzm=100
1036 return