CALL USBMOUNTR
Contents |
Effect
Displays, mounts or unmounts a disk image file when you use a storage device connected to the USB port of the Rookie Drive, then forces the computer to reset and reboot in mode 4 temporarily.
Notes:
- A disk image file will be mounted as read-only if it has the read-only attribute set.
- The system doesn't currently provide any way to create, delete, rename, move, change attributes, or otherwise manipulate the directories and disk image files on the storage device from within the MSX itself; you'll have to do that from another USB-capable computer (you can, of course, write to mounted disk image files using the MSX-DOS commands or Disk BASIC instructions).
Syntaxes
- CALL USBMOUNTR
- CALL USBMOUNTR ("<DiskName>")
- CALL USBMOUNTR (<DiskNumber>)
Parameters
When used without any parameter, CALL USBMOUNTR will display the name of the disk image that is currently mounted.
<DiskName> is the name of the disk image that will be mounted. It must be in the current directory.
If you want to mount a file of another directory, change to that directory first using CALL USBCD.
<DiskNumber> is a number between -1 and 255:
- if you use -1, the currently mounted disk image will be unmounted
- if you use 0, the default file in the current directory will be mounted
- if you use a number between 1 and 255, the nth file in the current directory will be mounted. Hidden files and files whose name starts with an underscore "_" character don't count.
Examples
CALL USBMOUNTR ("TEST.DSK")
CALL USBMOUNTR (25)
Related to
CALL USBCD, CALL USBFILES, CALL USBHELP, CALL USBMENU, CALL USBMOUNT