home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 18
/
018.d81
/
dop
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
16KB
|
513 lines
1 rem**************************************************************************
2 rem* disk operations programs - dop *
3 rem* written by charles o. gauthier *
5 rem* for all frustrated disk lovers *
6 rem**************************************************************************
10 rem*********************************
20 rem* declare variables *
30 rem*********************************
40 dim a$(150)
50 qo$=chr$(34):k$=" "
60 k1$="r[146]un u[146]p d[146]own q[146]uit"
70 k2$="p[146]urge u[146]p d[146]own q[146]"
80 rx=781:ry=782:rp=783:cp=65520:xs=23:ys=0:c$=chr$(13):sd=828
90 s$(1)=" purge/delete [146]":s$(2)=" c o p y [146]"
100 s$(3)=" rename disk [146]":s$(4)=" directory [146]"
110 s$(5)=" c h a n g e [146]":s$(6)="[144] f o r m a t [146]"
120 s$(7)=" print directory [146]":s$(8)="[144] load / run [146]"
130 m1$=" "
140 m$="[144]---------------------------------------"
190 goto19000
191 rem************************************************************************
192 rem* *
193 rem* subroutines section *
194 rem* *
195 rem************************************************************************
196 rem
197 rem********************************
198 rem* check for yes/no *
199 rem********************************
200 print"[147]"spc(240)spc(80)tab(10)"are you sure":printspc(50)"you want to"
210 printtab(8)s$(s):print
220 printtab(10)" y [146] for yes
230 [153][163]10)" n wait for no"
240 [161]g$:[139]g$[179][177]"y"[175]g$[179][177]"n"[167]240
250 [139]g$[178]"n"[167]ns[178]1
255 [142]
257 [143]********************************
258 [143]* ask purge or delete *
259 [143]********************************
260 [153]"load"[166]240)[166]80)[163]10)"select which":[153][166]50)"you want to do"
265 [153][163]6)" f1 wait for directory purge
270 printtab(6)" f3 [146] for 1 program delete
275 [161]g$:[139]g$[179][177]"input"[175]g$[179][177]"dim"[167]275
280 [142]
297 [143]********************************
298 [143]* directory check *
299 [143]********************************
300 dc[178]0:[153]"load"[166]240)[166]80)" do you want a directory first"
310 [153][163]10)" y wait for yes
320 printtab(10)" n [146] for no"
330 getb$:ifb$<>"y"andb$<>"n"then330
340 ifb$="y"thendc=1
350 return
357 rem********************************
358 rem* print blank line *
359 rem********************************
360 px=0:py=23:gosub470:printm1$:return
397 rem********************************
398 rem* page turner *
399 rem********************************
400 pokerx,xs:pokery,ys:pokerp,0
410 sys cp:ifr=1thenr=0:return
420 print"press [144] spacebar [146] to continiue[144] [144] q [146] quit"
430 getb$:ifb$="q"thengosub600:ifgg=0then400
440 ifgg=1then670
450 ifb$<>chr$(32)then430
460 return
467 rem********************************
468 rem* position cursor *
469 rem********************************
470 pokerx,py:pokery,px:pokerp,0
480 sys cp
490 return
497 rem********************************
498 rem* validate disk *
499 rem********************************
500 print"[147]"spc(240)tab(12)"please select":printtab(12)" your choice "
510 printtab(6)" f1 [146] to validate disk
512 [153][163]13)"(this may take a while!)"
520 [153][163]6)" f3 wait to return to menu
525 print"a validate merely re-organizes the"
527 print"disk's bam (block availability map)."
530 getg$:ifg$<>"[133]"andg$<>"[134]"then530
540 ifg$="[134]"thenreturn
550 print" now validating [146]"
560 close15:open15,8,15:print#15,"v":close15
570 return
597 rem********************************
598 rem* quit y/n *
599 rem********************************
600 print"[147] please be sure you want to quit"
610 gg=0
620 print" f1 [146] to quit"
630 print" f3 [146] to go back
640 [161]a$:[139]a$[179][177]"input"[175]a$[179][177]"dim"[167]640
650 [139]a$[178]"input"[167]gg[178]1
660 [142]
670 [153][199](142):[153]"load bye for now!!!!":[147]"payload connect",8:[128]
696 [143]*******************************
697 [143]* directory ( f4 main menu) *
699 [143]*******************************
700 [160]1:[160]15:[159]15,8,15:[159]1,8,0,"$":nf[178]0:[141]2690
702 [139]a$[179][177]"00"[167][160]15:[160]1:[142]
720 [161]#1,f$,s$
730 [161]#1,f$,s$
740 [161]#1,f$,s$
750 co[178]co[170]1
760 f[178]0:[139]f$[179][177]""[167]f[178][198](f$)
770 [139]s$[179][177]""[167]f[178]f[170][198](s$)[172]256
780 [153][202]([196](f),2);[163]3);[199](34);
790 [161]#1,s$:[139]st[179][177]0[167]890
800 [139]s$[179][177][199](34)[167]790
810 [161]#1,s$:[139]s$[179][177][199](34)[167][153]s$;:[137]810
820 [153][199](34);:nf[178]nf[170]1
830 [161]#1,s$:[139]s$[178][199](32)[167]830
840 [153][163]19);:t$[178]""
850 t$[178]t$[170]s$:[161]#1,s$:[139]s$[179][177]""[167]850
860 [153][200](t$,3)
870 [139]co[178]23[167]co[178]0:[137]920
880 [139]st[178]0[167]730
890 [153]"blocks free"
900 [160] 1
910 co[178]0:[142]
920 [153]" press stop y wait for more - stop n wait to stop";
930 [161]g$:[139]g$[179][177]"y"[175]g$[179][177]"n"[167]930
940 [139]g$[178]"n"[167][160]1:co[178]0:px[178]0:py[178]23:[141]470:[153]m1$:[142]
950 [153]"load":[137]880
997 [143]********************************
998 [143]* purge/delete disk f1 *
999 [143]********************************
1000 s[178]1:[141]200:s[178]0:[139]ns[178]1[167]ns[178]0:[142]
1005 [141]260:[139]g$[178]"dim"[167]1700
1010 d$[178]"0":d[178][197](d$):sp[178]1108:ls[178]17
1020 [153]"load"[166]240)[166]240)" purge current disk y wait or n wait"
1030 [161]g$:[139]g$[179][177]"y"[175]g$[179][177]"n"[167]1030
1040 [139]g$[178]"n"[167][142]
1050 [153]"load":[141]700:px[178]24:py[178]2:po[178]sp
1060 [141]470
1070 [153]k$:[129]t[178]1[164]50:[130]:[141]470:[153]k2$:[129]t[178]1[164]100:[130]
1080 [161]g$:[139]g$[179][177]"p"[175]g$[179][177]"u"[175]g$[179][177]"d"[175]g$[179][177]"q"[167]1060
1090 [139]g$[178]"q"[167]500
1100 [139]g$[178]"u"[167][141]470:[153]k$
1102 [139]g$[178]"u"[167][139]py[177]2[167]py[178]py[171]1:po[178]po[171]40:[139]py[179]0[167]py[178]0:po[178]sp[171]80
1110 [139]g$[178]"p"[167][141]1200:[139]d1$[178]"n"[167]1060
1120 [139]g$[178]"d"[167][141]470:[153]k$
1122 [139]g$[178]"d"[167][139]py[179]nf[167]py[178]py[170]1:po[178]po[170]40:[139]py[178][177]23[167]py[178]0:[137]1160
1130 [139]g$[178]"u"[176]g$[178]"d"[167]1060
1140 [141]470:[153]k$:py[178]py[170]1:po[178]po[170]40:[139]py[178][177]23[167]py[178]0:po[178]sp:[137]1160
1150 [137]1060
1160 [141]360:[153]" continue purge disk y wait or n wait "
1170 [161]g$:[139]g$[179][177]"y"[175]g$[179][177]"n"[167]1170
1180 [139]g$[178]"n"[167]500
1190 [137]1050
1200 a$[178]"":b$[178]"":pp[178]po:[129]s[178]1[164]ls
1210 a[178][194](pp):[139]a[179]32[167]p[178]a[170]64:[137]1230
1220 p[178]a
1230 a$[178][199](p):pp[178]pp[170]1:[139]a$[178][199](34)[167]s[178]ls:[137]1250
1240 b$[178]b$[170]a$:[130]
1250 r[178]1:[141]400:[153]" purge? wait "b$" y wait or n wait"
1260 [161]d1$:[139]d1$[179][177]"y"[175]d1$[179][177]"n"[167]1260
1270 r[178]1:[141]400:[153]m1$
1280 [139]d1$[178]"n"[167][142]
1290 [159] 1,8,15
1300 [152]1,"s:"[170]b$:b$[178]""
1310 [160] 1:[142]
1700 [141]300:[139]dc[178]1[167][153]"load":[141]700
1710 [141]360:px[178]0:py[178]23:[141]470
1720 [133]" delete which program wait";pn$:[139]pn$[178]""[167][142]
1730 s$(0)[178]" delete wait "[170]pn$
1740 [141]200:[139]ns[178]1[167]ns[178]0:[142]
1750 s$(0)[178]""
1760 [159]1,8,15:[152]1,"s:"[170]pn$:[160]1:
1770 [141]500:[142]
1997 [143]*******************************
1998 [143]* rename / disk id f3 *
1999 [143]*******************************
2000 s[178]3:[141]200:s[178]0:[139]ns[178]1[167]ns[178]0:[142]
2003 dv[178]0:sp$[178]" "
2004 m$[178]"stop----------------