home *** CD-ROM | disk | FTP | other *** search
- 100 rem device presence checker
- 110 rem by paul g sawyer
- 120 rem store device # in 252,
- 130 rem sys to routine (49152),
- 140 rem then peek(251). if value is
- 150 rem 0 then device is off,
- 160 rem 1 then device is on.
- 170 rem
- 180 rem if device checked is a disk
- 190 rem drive, initilize after calling
- 200 rem routine.
- 220 for i=49152 to 49191:read x:poke i,x:next
- 230 data 169, 0, 133, 251, 165, 252, 170, 160
- 240 data 0, 32, 186, 255, 169, 1, 166, 251
- 250 data 160, 0, 32, 189, 255, 32, 192, 255
- 260 data 165, 144, 72, 165, 252, 32, 195, 255
- 270 data 104, 48, 4, 169, 1, 133, 251, 96
-