sd2iec Wedge 64 (sw64)

A command-oriented wedge to control SD2IEC devices.
Developed for the Commodore C64.

If the file browser is too modern, no appropriate cartridges is available, an existing BASIC program should not be overwritten or the desire for command based input commands exists, then sw64 is a hell of a lot of fun!

Download the programm, copy it to your C64 disk and load sw64-c000.prg and start with sys49152 or sys49152,drive for set the current sd2iec drive. Alternative there is also sw64-9000.prg to use different memory area. You can start it with sys36864 or sys36864,drive for set the current sd2iec drive

Commands:

Each command starts with the @ character. This is the identification character so that the wedge become active. Otherwise, Basic can be used as usual.

@$[,dr]

Lists the directory without destroying a basic program (dr: The current drive)

@DIR

Shows the directory in the current drive

@{Arrow left}

Unmount a disc / Jumps a level higher in the directoy

@{arrow up}

Not yet implemented

@MD"DIRECTORY"[,dr]

Creates a directory (Make Directory) (dr: The current drive)

@RD"DIRECTORY"[,dr]

Delete a directory (Remove Directory) (dr: The current drive)

@CD"DIRECTORY"[,dr]

Switches to the specified directory (Change Directory) (dr: The current drive)

@CI"Name.Dxx"[,dr]

Creates a D64, D71 or D81 Image file, depends on xx in suffix (xx can be 64, 71 or 81)

@CD"FILE.D64"

Open the D64 file

@STAT

Shows a status (current drive) and status of the current drive

@SDR:dr

sets the current drive (dr: The drive number)

@SC"COMMAND"[,dr]

Sends Commandos directly to the drive (Send Command) (dr: The current drive)

Send Command can also be used with normal drives (e.g. validation or initialization)

Examples:

Here are some examples that illustrate working with the wedge and show the possibilities

@$,11

Shows the directory of drive 11, sets automatically the drive to 11 so that all subsequent commands also address this drive. This is valid as long as a new drive is not set. This means that if you call @$ again without specifying the drive, drive 11 will be addressed.

@MD"Test"

Creates the "Test" directory in the current drive (here drive 11).

@MD"Test02",9

Creates the "Test02" directory in drive 9.

@RD"Test02"

Deletes the created directory "Test02" in the current drive (here drive 9).

@CD"Test",11

Switches to the "Test" directory on drive 11

@CI"file.d64"

Creates a D64 Images with the name "file"

@CD"file.d64"

Opens the D64 image. The files contained in it can now be accessed. The directory can be displayed with the @$ command.

@SC"CD{Arrow left}"

The Send Command can be used to close a mounted D64 image again, i.e. to jump back to the level above.

@STAT

The Stat command displays the current drive. Also the status of the drive is displayed.

@SDR:10

The Set Drive Command sets the current drive

The SC Command:

The SC command can be used for any kind of communication with the drive. A real device can also be addressed here:

Examples:

@SC"I",8

Sends the "Initialization" command to the drive 8.

@SC"N:NEWDISK,01"

Sends the command to format a floppy disk. The name and the disk ID are passed here.

@SC"S:TEMPFILE",8

Deletes (scratch) the file "Tempfile" in drive 8.

@SC"R:NEWNAME=TEMPFILE"

Renames the file "TEMPFILE" to "NEWNAME" - note that the new name comes first

History:

First Version V23.01 (January 2023)

V23.02 (February 2023)

V24.05 (Mai 2024)

Downloads:

sw64-c000.prg > Start with sys49152 or sys49152,drive for set the current sd2iec drive or

sw64-9000.prg > Start with sys36864 or sys36864,drive for set the current sd2iec drive

SW64 in action
SW64 in action

Please send any suggestions, questions or comments to sw64ATmrys.de