home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-08-05 | 1.2 KB | 53 lines |
- Screen Open 1,640,200,4,Hires
- Proc _DISK_RW[0]
- If Param=True
- Print "Please write protect your disk and insert disk again"
- Repeat
- Multi Wait
- Proc _DISK_RW[0]
- Multi Wait
- Until Param<>True
- Else
- Print "Please disable write protect and insert disk again"
- Repeat
- Multi Wait
- Proc _DISK_RW[0]
- Multi Wait
- Until Param=True
- End If
- Proc _DISK_STATE[0]
- If Param=True
- Print "Disk is inserted in df0:"
- Print "Please remove disk to end program"
- Repeat
- Multi Wait
- Proc _DISK_STATE[0]
- Multi Wait
- Until Param<>True
- Else
- Print "No disk in df0:"
- Print "Please insert disk to end program"
- Repeat
- Multi Wait
- Proc _DISK_STATE[0]
- Multi Wait
- Until Param=True
- End If
- Procedure _DISK_STATE[DEV]
- Rem Returns EXACTLY True if a disk is inserted
- QUERY=14
- A= Not( Extension_10_01AE("trackdisk.device",DEV,0))
- If A
- RET= Not( Extension_10_01DA(QUERY,0,0,0))
- Extension_10_01C6
- End If
- End Proc[RET]
- Procedure _DISK_RW[DEV]
- Rem Returns EXACTLY True if a disk is write enabled
- QUERY=15
- A= Not( Extension_10_01AE("trackdisk.device",DEV,0))
- If A
- RET= Not( Extension_10_01DA(QUERY,0,0,0))
- Extension_10_01C6
- End If
- End Proc[RET]