'\" t .\" Title: cc1541 .\" Author: Björn Esser .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 08/28/2022 .\" Manual: cc1541 manual .\" Source: cc1541 v4.0 .\" Language: English .\" .TH "CC1541" "1" "08/28/2022" "cc1541 v4\&.0" "cc1541 manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" cc1541 \- A tool for creating Commodore 1541 Floppy disk images in D64, D71 or D81 format with custom sector interleaving etc\&. Also supports extended tracks 35\-40 using either SPEED DOS or DOLPHIN DOS BAM\-formatting\&. .SH "SYNOPSIS" .sp \fBcc1541\fR [\fIoptions\fR] image\&.[\fId64|d71|d81\fR] .SH "OPTIONS" .PP \fB\-n diskname\fR .RS 4 Disk name, default=\fIcc1541\fR\&. .RE .PP \fB\-i id\fR .RS 4 Disk ID, default=\fI00 2a\fR\&. .RE .PP \fB\-H message\fR .RS 4 Hidden BAM message\&. Only for D64 (up to 85 chars) or SPEED DOS (up to 20 chars)\&. .RE .PP \fB\-w localname\fR .RS 4 Write local file to disk, if filename is not set then the local name is used\&. After file written, the filename is unset\&. .RE .PP \fB\-W localname\fR .RS 4 Like \-w, but encode file in Transwarp format\&. .RE .PP \fB\-K key\fR .RS 4 Set an encryption key for Transwarp files, a string of up to 29 characters\&. .RE .PP \fB\-f filename\fR .RS 4 Use filename as name when writing next file, use prefix \fI#\fR to include arbitrary PETSCII characters (e\&.g\&. \-f "START#a0,8,1")\&. .RE .PP \fB\-o\fR .RS 4 Do not overwrite if file with same name exists already\&. .RE .PP \fB\-V\fR .RS 4 Do not modify image unless it is in valid CBM DOS format\&. .RE .PP \fB\-T filetype\fR .RS 4 Filetype for next file, allowed parameters are PRG, SEQ, USR, REL and DEL, or a decimal number between 0 and 255\&. Default is PRG\&. .RE .PP \fB\-P\fR .RS 4 Set write protect flag for next file\&. .RE .PP \fB\-O\fR .RS 4 Set open flag for next file\&. .RE .PP \fB\-N\fR .RS 4 Force creation of a new directory entry, even if a file with the same name exists already\&. .RE .PP \fB\-l filename\fR .RS 4 Write loop file (an additional dir entry) to existing file to disk, set filename with \-f\&. .RE .PP \fB\-L\fR .RS 4 Add dir entry without writing file (track and sector will be 0), requires a filename given with \-f\&. .RE .PP \fB\-B numblocks\fR .RS 4 Write the given value as file size in blocks to the directory for the next file\&. .RE .PP \fB\-M numchars\fR .RS 4 Hash computation maximum filename length, this must match loader option FILENAME_MAXLENGTH in Krill\(cqs loader\&. Default is 16\&. .RE .PP \fB\-m\fR .RS 4 Ignore filename hash collisions, without this switch a collision results in an error\&. .RE .PP \fB\-d track\fR .RS 4 Maintain a shadow directory (copy of the actual directory without a valid BAM)\&. .RE .PP \fB\-t\fR .RS 4 Use directory track to also store files (makes \-x useless) (default no)\&. .RE .PP \fB\-u numblocks\fR .RS 4 When using \-t, amount of dir blocks to leave free (default=2)\&. .RE .PP \fB\-x\fR .RS 4 Don\(cqt split files over directory track hole (default split files)\&. .RE .PP \fB\-F\fR .RS 4 Next file first sector on a new track (default=0)\&. Any negative value assumes aligned tracks and uses current sector + interleave \- value\&. After each file, the value falls back to the default\&. Not applicable for D81\&. .RE .PP \fB\-S value\fR .RS 4 Default sector interleave, default=10\&. Not applicable for D81\&. .RE .PP \fB\-s value\fR .RS 4 Next file sector interleave, valid after each file\&. The interleave value falls back to the default value set by \-S after the first sector of the next file\&. Not applicable for D81\&. .RE .PP \fB\-e\fR .RS 4 Start next file on an empty track (default start sector is current sector plus interleave)\&. .RE .PP \fB\-E\fR .RS 4 Try to fit file on a single track\&. .RE .PP \fB\-r track\fR .RS 4 Restrict next file blocks to the specified track or higher\&. .RE .PP \fB\-b sector\fR .RS 4 Set next file beginning sector to the specified value\&. Not applicable for D81\&. .RE .PP \fB\-c\fR .RS 4 Save next file cluster\-optimized (d71 only)\&. .RE .PP \fB\-4\fR .RS 4 Use tracks 35\-40 with SPEED DOS BAM formatting\&. .RE .PP \fB\-5\fR .RS 4 Use tracks 35\-40 with DOLPHIN DOS BAM formatting\&. .RE .PP \fB\-R level\fR .RS 4 Try to restore deleted and formatted files\&. level 0: Only restore all dir entries without touching any t/s links\&. level 1: Fix dir entries for files with valid t/s chains\&. level 2: Also add wild sector chains with valid t/s chains\&. level 3: Also fix dir entries with invalid t/s chains\&. level 4: Also add and fix wild invalid t/s chains\&. level 5: Also add reasonable wild single blocks\&. .RE .PP \fB\-g filename\fR .RS 4 Write additional g64 output file with given name\&. .RE .PP \fB\-a\fR .RS 4 Print command line options that would create the same directory as the one in the given image (for directory art import)\&. .RE .PP \fB\-U mapping\fR .RS 4 Print PETSCII as Unicode (requires Unicode 13\&.0 font, e\&.g\&. UNSCII)\&. Use mapping 0 for ASCII output, 1 for upper case, 2 for lower case, default is 0\&. .RE .PP \fB\-q\fR .RS 4 Be quiet\&. .RE .PP \fB\-v\fR .RS 4 Be verbose\&. .RE .PP \fB\-h\fR .RS 4 Print command line help\&. .RE .SH "EXIT STATUS" .PP \fB0\fR .RS 4 Success\&. .RE .PP \fB\-1\fR .RS 4 Failure\&. .RE .SH "RESOURCES" .sp Project web site: https://bitbucket\&.org/PTV_Claus/cc1541/src .SH "BUG REPORTS" .sp Please report bugs to: https://bitbucket\&.org/PTV_Claus/cc1541/issues/new .SH "LICENSE" .sp Copyright \(co 2008\-2021 JackAsser, Krill, Claus, Björn Esser\&. .sp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: .sp The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software\&. .sp THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\&. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\&. .SH "AUTHOR" .PP \fBBjörn Esser\fR <\&besser82@fedoraproject\&.org\&> .RS 4 Author. .RE