sd2iec Wedge 64 (sw64)
An assembler program developed for the Commodore C64.
If the file browser is too modern, no appropriate cartridges is avialable, 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!
Commands:
@$[,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)
@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:
@$,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
@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 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
First Version V23.01 (January 2023)
-Initialize and release the first version
V23.02 (February 2023)
-Change the command @! to @$ for the sake of logic
-New command @{left arrow} to unmount a disc and jump one level higher inn the dirctory
-New command @SDR:dr to set the current drive
-Some source code optimization
TODOs:
-A separate command to jump to the root directory
-A @bye command to exit the tool and re-wedge the vectors
-Check for drive number (range 8-15) to prevent possible incorrect entries
-Check input texts for special characters to react with different actions if necessary
-Implement a query whether the action should really be executed. This is the case for commands that touch files,
like the Send Command command.
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
Please send any suggestions, questions or comments to sw64ATmrys.de
Copyright © 2023 by DiscMix