home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Toolkit
/
TEST-DOS-VERSION
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
1KB
|
37 lines
10 REM CHECK DISK TYPE F.BOWEN 09/15/87
20 REM
30 REM THIS PROGRAM WILL IDENTIFY THE
40 REM CBM DISK TYPE BY CHECKING THE
50 REM DRIVE'S CHECKSUM BYTE.
70 REM
100 INPUT"CHECK WHICH UNIT";U: OPEN8,U,15
110 PRINT#8,"M-R"CHR$(00)CHR$(192)CHR$(2): GET#8,A$,B$
120 PRINT#8,"M-R"CHR$(47)CHR$(255)CHR$(1): GET#8,C$
125 PRINT#8,"M-R"CHR$(230)CHR$(254): GET#8,D$
130 CLOSE8
140 :
150 A=ASC(A$):B=ASC(B$):C=ASC(C$):D=ASC(D$): REM ADD +CHR$(0) IF C64
160 :
170 IF A<>151 THEN 230
180 IF C<>169 THEN 295
190 IF B= 70 THEN PRINT"1541B WITH UPDATE VERSION 251968-02": END
200 IF B= 170 THEN PRINT"1541B VERSION 251968-01, NEEDS UPDATE": END
210 IF B= 224 THEN PRINT"1541-II VERSION 251968-03": END
220 :
230 IF A=56 THEN PRINT"1571- WITH UPDATE": END
240 IF A=66 THEN PRINT"1571- NEEDS UPDATE": END
250 IF A=132 THEN PRINT"1571CR": END
260 :
270 IF A=192 THEN PRINT"1581": END
280 :
290 PRINT"UNRECOGNIZED DRIVE":LIST292-294:END
292 REM 1540 HAD DOS VERSION 325303-XX
293 REM PLEASE E-MAIL R.DAY ON GENIE IF YOU HAVE 1540 ROM!
294 REM THERE WAS NO 901229-02 OR -04
295 V$="1541 VERSION 901229-0"
300 IF D=253THENPRINTV$;"1": END
310 IF D=14THENPRINTV$;"3": END
320 IF D=62THENPRINTV$;"5": END
330 IF D=166THENPRINT"1541 WITH JIFFYDOS 5.0": END
340 GOTO290