CHAPTER
TEN
USING DISKS
We discussed using D81 disk images back in Disk images, including:
• How to browse D81 disk images using the Freeze menu
• How to mount a D81 disk image on drive 0 device 8 using the Freeze menu
• How to get a directory listing with the DIR command
• How to load and run a program on the disk using the LOAD and RUN commands
• How to use the / shortcut to load a file within a directory listing
Disk-related improvements have been advancing quickly, and the latest ROM includes bug fixes and useful features not
mentioned in the printed manual.
Tip: Be sure that you have the latest ROM version before trying some of these features.
10.1 Listing a disk directory
The DIR command lists all of the files on a given disk. Without arguments, it lists the files on the disk in device 8:
DIR
If there are too many files than fit on a single screen, the list will scroll off and you will only see the bottom of the list.
You can use the W argument to tell DIR to show the listing in multiple columns, and to wait for a keypress to show more
pages. (Try this with the MEGA65.D81 disk.)
DIR W
Tip: For more on the DIR command, see the User’s Guide, page 106.
One disadvantage of the W flag is that you cannot use the / shortcut to load a program into memory. There is another
way to view the complete directory listing and still use this shortcut: load the listing into BASIC memory. Commodore
64 users are familiar with LOAD "$",8 followed by LIST. To do this with the MEGA65:
DLOAD "$$"
LIST
51