home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 122
/
Tiger_Disk_122_20xx_Tiger-Crew-Disk_de_Side_B.d64
/
file-parameter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
3KB
|
116 lines
10 clr:poke53280,6:poke53281,0:printchr$(147);:
20 print"[147][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175]";
30 print"[176][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][192][192][192][192][192][174]";
40 print"[221] [154] [221]";
50 print"[221] > file-parameter anzeigen < [221]";
60 print"[221] [154] [221]";
70 print"[173][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][192][192][192][192][192][189]";:
80 print"[183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]";:print:print
90 fl=0
100 poke19,1:input" file-name: [158]";d$:poke19,0
105 ifd$="e"thenprint"":end
110 iflen(d$)<=16then130
120 print:print"[147] filename zu lang!":forz=1to1250:next:print"[147]":goto100
130 open15,8,15,"io":open2,8,2,"#"
140 t=18:s=1
150 print#15,"u1";2;0;t;s
160 print#15,"b-p";2;0
170 get#2,a$:ifa$=""thena$=chr$(0)
180 t=asc(a$)
190 get#2,a$:ifa$=""thena$=chr$(0)
200 s=asc(a$)
210 forx=0to7
220 print#15,"b-p";2;x*32+5
230 dn$=""
240 fory=0to15
250 get#2,a$:ifa$=""thena$=chr$(0)
260 ifasc(a$)=160then290
270 dn$=dn$+a$
280 nexty
290 ifd$=dn$then370
300 ifflthenprintdn$
310 nextx
320 ift=0then340
330 goto150
340 close2:close15
350 iffl=0thenprint"[147][151][146] das file [152]";chr$(34);d$;chr$(34);"
360 [153]"pokewait wurde nicht gefunden!poke":[129]z[178]1[164]1500:[130]:[153]"load":[137]100
370 [139]fl[167][142]
380 [152]15,"b-p";2;x[172]32[170]2
390 [161]#2,a$:[139]a$[178]""[167]a$[178][199](0)
400 dy[178][198](a$)
410 fd[178]dy[175]15
420 [139]fd[178]0[167]dn$"=geloescht"
430 [139]fd[178]1[167]dn$[178]"seq.-file"
440 [139]fd[178]2[167]dn$[178]"prg.-file"
450 [139]fd[178]3[167]dn$[178]"user-file"
460 [139]fd[178]4[167]dn$[178]"rel.-file"
470 [139]fd[177]4[167][153]"poke filetyp ungueltig!":[128]
480 [139]dy[175]128[167]ce$[178]"ja":[137]500
490 ce$[178]"nein"
500 [139]ty[175]64[167]a$[178]ja":goto640
510 la$="nein"
520 print#15,"b-p";2,x*32+30
530 get#2,a$:ifa$=""thena$=chr$(0)
540 lb=asc(a$)
550 get#2,a$:ifa$=""thena$=chr$(0)
560 hb=asc(a$)*256
570 bl=lb+hb
580 iffd<>4then620
590 print#15,"b-p";2;x*32+23
600 get#2,a$:ifa$=""thena$=chr$(0)
610 rl=asc(a$)
620 iffd<>2then770
630 print#15,"b-p";2;x*32+3
640 get#2,a$:ifa$=""thena$=chr$(0)
650 tr=asc(a$)
660 get#2,a$:ifa$=""thena$=chr$(0)
670 se=asc(a$)
680 open3,8,3,"#"
690 print#15,"u1";3;0;tr;se
700 print#15,"b-p";3;2
710 get#3,a$:ifa$=""thena$=chr$(0)
720 lb=asc(a$)
730 get#3,a$:ifa$=""thena$=chr$(0)
740 hb=asc(a$)*256
750 aa=lb+hb
760 close3
770 print#15,"u1";2;0;18;0
780 bf=0
790 fori=4to140step4
800 ifi=72then840
810 print#15,"b-p";2;i
820 get#2,a$:ifa$=""thena$=chr$(0)
830 bf=asc(a$)+bf
840 next
850 bb=664-bf
860 ifft<>4then900
870 bs=bl/121:ifbs=<>int(bs)thenbs=int(bs+1)
880 rc=int((bl-bs)*254/rl)
890 print:print" [151]file ";chr$(34);d$;chr$(34);" [146]gefunden -":
900 printchr$(147)"[151] file ";chr$(34);d$;chr$(34);"[146][151] gefunden -":
910 print" ausgabe auf b[146]ildschirm oder d[146]rucker";
920 geta$:ifa$=""ora$<>"b"anda$<>"d"then920
930 re$=chr$(18):ra$=chr$(146)
940 ifa$="b"thenopen1,3:print#1,chr$(147)
950 ifa$="d"thenopen1,4
960 print#1,"parameter des files "chr$(34);d$;chr$(34)
970 print#1,"[151]---------------------------------------"
980 print#1,"[151]filetyp: [152]";dn$;ra$:print#1
990 print#1,"[151]file geschlossen: [152]";ce$;ra$:print#1
1000 print#1,"[151]file geschuetzt: [152]";la$;ra$:print#1
1010 print#1,"[151]belegte bloecke: [152]";bl;ra$:print#1
1020 iffd<>4then1070
1030 print#1,"[151]recordlaenge: [152]";rl;ra$:print#1
1040 print#1,"[151]side-side bloecke: [152]";bs;ra$:print#1
1050 print#1,"[151]datenbloecke: [152]";bl-bs;ra$:print#1
1060 print#1,"[151]records: [152]";rc;ra$:print#1
1070 iffd=2then print#1,"[151]anfangsadresse: [152]";aa;ra$:print#1
1080 print#1,"[151]freie bloecke (disk): [152]";bf;ra$:print#1
1090 print#1,"[151]belegte bloecke (disk): [152]";bb;ra$:print#1
1100 close1
1110 print:print" noch ein file? <j/n>"
1120 close2:close15
1130 geta$:ifa$=""ora$<>"j"anda$<>"n"then1130
1140 ifa$="j"thenrun