home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 541 b | 17 lines |
- ' handy tips
- 'To check if led is on/off
- 'A=Btst(1,$BFE001)
- 'If A=0 LED IS On
- 'if a=-1 led is off
- ' is there a disk in the drive
- 'Poke $BFD100,%10000 : Rem df0: turn drive on briefly
- 'Poke $BFD100,%1000 : Rem df1: turn drive on briefly
- 'A=Btst(2,$BFE001)
- 'if a=-1 disk in drive
- ' if a=0 no disk in drive
- ' is the disk write protected
- 'Poke $BFD100,%10000 : Rem df0: turn drive on briefly
- 'Poke $BFD100,%1000 : Rem df1: turn drive on briefly
- 'A=Btst(3,$BFE001)
- ' if a=-1 means write enabled
- ' if a=0 means write protected