EasyManua.ls Logo

Mega 65 - SD Card Access from BASIC

Mega 65
101 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MEGA65 Welcome Guide
This still scrolls a long listing off the screen, but now you can use MEGA65 BASIC’s listing viewer features to scroll
up to previous lines. Use the F9 and F11 keys to traverse the listing, then cursor up to a program you want to load and
use the / shortcut.
Caution: Loading the directory listing with DLOAD overwrites any BASIC program that resides in memory. The
DIR command does not overwrite BASIC memory.
10.2 Using the SD card from BASIC
Recent improvements added the ability to manipulate disk images on the SD card without using the Freeze menu. In
general, device U12 is considered the SD card. Only some disk commands work with the U12 device.
To list all of the files on the SD card:
DIR U12
This does not yet support other features of the DIR command, such as filters or paging.
To mount a D81 disk image from the SD card directly from BASIC, use the MOUNT command:
MOUNT "DISKNAME.D81"
By default, this mounts the disk image to device 8 (U8). To mount to device 9, add an argument:
MOUNT "DISKNAME.D81",U9
You can load a program file (.PRG) directly from the SD card, without having to create a D81 disk image. To do this,
use the DLOAD command with unit U12, and be sure to include the .PRG filename extension:
DLOAD "FILENAME.PRG",U12
(Loading a PRG file directly from the SD card does not work with the LOAD command.)
10.3 Using 3-1/2” floppy disks
Your MEGA65 includes a built-in 3-1/2” floppy disk drive for a complete retro experience.
If you dont have 3-1/2” floppy disks lying around, you can still buy them new-old-stock at a reasonable price. I buy
mine from FloppyDisk.com. You can also find refurbished floppy disks on eBay.
The MEGA65 floppy drive supports both double density (DD) and high density (HD) disks. However, as of this writing,
the ability to use the larger capacity of HD disks is still in development. To use an HD disk with the MEGA65, you
must apply non-transparent tape over the hole in the upper left (as shown). This convinces the floppy drive to treat the
HD disk as if it were DD.
52 Chapter 10. Using disks

Table of Contents