home *** CD-ROM | disk | FTP | other *** search
- 70 rem interrogate disk, files
- 80 :
- 90 print"[147][144]
- 100 [143] is device present
- 110 [143] p=0 - yes; p<>0 - no
- 120 [143]
- 130 [159] 15,8,15:[160]15:p[178]128[175]st
- 140 [153]"device is ";:[139] p [167] [153]"not ";
- 150 [153]"present"
- 160 :
- 170 [139] p [167] [128]:[143] if no drive, stop
- 180 :
- 190 :
- 200 [143] is write protect on
- 210 [143] w=0 - yes; w<>0 - no
- 220 [143]
- 230 [159] 15,8,15
- 240 [152]15,"m-r"[199](0)[199](28)
- 250 [161]#15,x$:w[178][198](x$[170][199](0))[175]16
- 260 [160] 15
- 270 [153]"write protect is ";:[139] w [167] [153]"not ";
- 280 [153]"present"
- 290 :
- 300 [143] return disk blocks available
- 310 [143]
- 320 [159] 15,8,15
- 330 [152]15,"m-e"[199](61)[199](198):[143] check if new disk - if so, read in bam
- 340 [152]15,"m-r"[199](250)[199](2):[161]#15,x$:y[178][198](x$[170][199](0)):[143] get lo byte
- 350 [152]15,"m-r"[199](252)[199](2):[161]#15,x$:x[178][198](x$[170][199](0)):[143] get hi byte
- 360 [160]15
- 370 b[178]x[172]256[170]y:[153] b"blocks available"
- 380 :
- 390 :
- 400 [143] print open device #s
- 410 [143]
- 420 n[178][194](152):[143] # open devices
- 430 [153] n"files open":[139] n[178]0 [167]480
- 440 [129] i[178]601 [164] 600[170]n
- 450 [153]"file number:"[194](i);
- 460 [153]"device number:"[194](i[170]10)
- 470 [130]
- 480 :
-