home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1989 July
/
1989-07.d64
/
progpage2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
515b
|
17 lines
5 print"[147]":poke53281,6:poke53280,14:poke646,14
100 input "check which unit";u:open 8,u,15
110 print#8,"m-r"chr$(0)chr$(192)chrr$(2):get#8,a$,b$
120 print#8,"m-r"chr$(47)chr$(255)chr$(1):get#8,c$
130 close 8
140 a=asc(a$+chr$(0)):b=asc(b$+chr$(0)):c=asc(c$+chr$(0))
150 if a<>151 then 200
160 if c<>169 then print "1541":end
170 if b=70 then print "1541b with update":nd
180 if b=170 then print "1541b that needs update":end
190 if b=224 then print "1541-ii":end
200 if a=56 then print "1571 with update":end
210 if a=66 then print "1571 that needs update":end
220 if a=132 then print "1571cr":end
230 if a=192 then print "1581":end
240 print "unrecognized drive"