home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 116
/
Tiger_Disk_116_2003_Tiger-Crew-Disk_de_Side_B.d64
/
super-directory
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
71 lines
10 poke53280,11:poke53281,11:tr=18:se=1:dima(300):dimb(200)
15 hx$="0123456789abcdef"
18 p=0:input"[147]printer y/n/q ";yn$:ifyn$="y"thenp=1
19 ifyn$="q"thenprint"good bye...!":end
20 print"[147][158] superdirectory[153] (c)84 psidac vbn"
25 ifp=1thenopen4,4:print#4:print#4,chr$(16)"15superdirectory":print#4:close4
30 print"insert source disk in drive"
35 input"disk name";dn$
40 ifpd=1then50
41 print"press f7"
42 geta$:ifa$<>"[136]"then42
45 ifp=1thenopen4,4:print#4,"disk name = "dn$:print#4:close4
50 open15,8,15:open2,8,2,"#":print#15,"u1:"2;0;tr;se
60 sys49152
70 close2:close15
80 forrp=0to255
100 a(rp)=peek(rp+52992)
120 next
125 tr=a(0):se=a(1)
130 print"[147]type track sector name blks"
132 ifpd=1thenopen4,4:goto138
133 ifp<>1then136
134 open4,4:print#4,"type track sector name blks":print#4
136 ifp=1thenpd=1
138 forrp=2to226step32:ok=1:ft$=" "
139 tk=a(rp+1):sk=a(rp+2):nb=a(rp+28):iftk=0thenclose4:goto200
140 ifa(rp)=0thenft$="del":ok=1
145 ifa(rp)=130thenft$="prg":ok=1
150 ifa(rp)=132thenft$="rel":ok=0
155 ifa(rp)=129thenft$="seq":ok=0
160 printft$;
165 ifp=1thenprint#4,ft$;
172 printtab(5)tk;tab(12)sk;
175 ifp=1thenprint#4,chr$(16)"07"tk;chr$(16)"16"sk;chr$(16)"27";
178 ifok=1thenb(c)=tk:b(c+1)=sk:c=c+2
180 printtab(18);:fortx=3to18:printchr$(a(rp+tx));:next:printtab(34)nb
185 ifp=1thenfortx=3to18:print#4,chr$(a(rp+tx));:next:print#4,chr$(16)"46"nb
190 next:close4
200 ifa(0)<>0thengoto40
300 print"press f7"
305 geta$:ifa$<>"[136]"then305
310 print"[147]track sector hex.add dec.add":print
315 ifp<>1then320
318 open4,4:print#4:print#4,"track sector hex.add dec.add":print#4
319 close4
320 pc=1:forrp=0toc-2step2
330 tr=b(rp):se=b(rp+1)
340 open15,8,15:open2,8,2,"#":print#15,"u1:"2;0;tr;se
350 sys49152
360 close2:close15:pc=pc+1
364 ifp=1then370
365 ifpc<>18goto370
367 print"press f7"
368 geta$:ifa$<>"[136]"then368
369 pc=1:print"[147]track sector hex.add dec.add":print
370 al=peek(52994):ah=peek(52995):at=256*ah+al
375 gosub1000
380 printtr;tab(9)se;tab(18)d$;tab(29)at
382 ifp<>1then390
385 open4,4
386 print#4,tr;chr$(16)"07"se;chr$(16)"16"d$;chr$(16)"26"at:close4
390 next
400 print"press f7"
410 geta$:ifa$<>"[136]"then410
999 run10
1000 x=at:d$=""
1005 d(1)=int(x/4096):x=x-(d(1)*4096):d(2)=int(x/256):x=x-(d(2)*256)
1010 d(3)=int(x/16):d(4)=x-(d(3)*16)
1020 fori=1to4:d$=d$+mid$(hx$,(d(i)+1),1):next
1060 return