1CC1541(1) cc1541 manual CC1541(1)
2
3
4
6 cc1541 - A tool for creating Commodore 1541 Floppy disk images in D64,
7 D71 or D81 format with custom sector interleaving etc. Also supports
8 extended tracks 35-40 using either SPEED DOS or DOLPHIN DOS
9 BAM-formatting.
10
12 cc1541 [options] image.[d64|d71|d81]
13
15 -n diskname
16 Disk name, default=cc1541.
17
18 -i id
19 Disk ID, default=00 2a.
20
21 -H message
22 Hidden BAM message. Only for D64 (up to 85 chars) or SPEED DOS (up
23 to 20 chars).
24
25 -w localname
26 Write local file to disk, if filename is not set then the local
27 name is used. After file written, the filename is unset.
28
29 -W localname
30 Like -w, but encode file in Transwarp format.
31
32 -K key
33 Set an encryption key for Transwarp files, a string of up to 29
34 characters.
35
36 -f filename
37 Use filename as name when writing next file, use prefix # to
38 include arbitrary PETSCII characters (e.g. -f "START#a0,8,1").
39
40 -o
41 Do not overwrite if file with same name exists already.
42
43 -V
44 Do not modify image unless it is in valid CBM DOS format.
45
46 -T filetype
47 Filetype for next file, allowed parameters are PRG, SEQ, USR, REL
48 and DEL, or a decimal number between 0 and 255. Default is PRG.
49
50 -P
51 Set write protect flag for next file.
52
53 -O
54 Set open flag for next file.
55
56 -N
57 Force creation of a new directory entry, even if a file with the
58 same name exists already.
59
60 -l filename
61 Write loop file (an additional dir entry) to existing file to disk,
62 set filename with -f.
63
64 -L
65 Add dir entry without writing file (track and sector will be 0),
66 requires a filename given with -f.
67
68 -B numblocks
69 Write the given value as file size in blocks to the directory for
70 the next file.
71
72 -M numchars
73 Hash computation maximum filename length, this must match loader
74 option FILENAME_MAXLENGTH in Krill’s loader. Default is 16.
75
76 -m
77 Ignore filename hash collisions, without this switch a collision
78 results in an error.
79
80 -d track
81 Maintain a shadow directory (copy of the actual directory without a
82 valid BAM).
83
84 -t
85 Use directory track to also store files (makes -x useless) (default
86 no).
87
88 -u numblocks
89 When using -t, amount of dir blocks to leave free (default=2).
90
91 -x
92 Don’t split files over directory track hole (default split files).
93
94 -F
95 Next file first sector on a new track (default=0). Any negative
96 value assumes aligned tracks and uses current sector + interleave -
97 value. After each file, the value falls back to the default. Not
98 applicable for D81.
99
100 -S value
101 Default sector interleave, default=10. Not applicable for D81.
102
103 -s value
104 Next file sector interleave, valid after each file. The interleave
105 value falls back to the default value set by -S after the first
106 sector of the next file. Not applicable for D81 or Transwarp files.
107
108 -e
109 Start next file on an empty track (default start sector is current
110 sector plus interleave).
111
112 -E
113 Try to fit file on a single track.
114
115 -r track
116 Restrict next file blocks to the specified track or higher.
117
118 -b sector
119 Set next file beginning sector to the specified value. Not
120 applicable for D81 or Transwarp files.
121
122 -A value
123 Select allocation strategy for Transwarp files (default 1). 0:
124 allocate in the order given on the commandline. 1: save disk space
125 by reordering transwarp files.
126
127 -c
128 Save next file cluster-optimized (d71 only).
129
130 -4
131 Use tracks 35-40 with SPEED DOS BAM formatting.
132
133 -5
134 Use tracks 35-40 with DOLPHIN DOS BAM formatting.
135
136 -R level
137 Try to restore deleted and formatted files. level 0: Only restore
138 all dir entries without touching any t/s links. level 1: Fix dir
139 entries for files with valid t/s chains. level 2: Also add wild
140 sector chains with valid t/s chains. level 3: Also fix dir entries
141 with invalid t/s chains. level 4: Also add and fix wild invalid t/s
142 chains. level 5: Also add reasonable wild single blocks.
143
144 -g filename
145 Write additional g64 output file with given name.
146
147 -a
148 Print command line options that would create the same directory as
149 the one in the given image (for directory art import).
150
151 -U mapping
152 Print PETSCII as Unicode (requires Unicode 13.0 font, e.g. UNSCII).
153 Use mapping 0 for ASCII output, 1 for upper case, 2 for lower case,
154 default is 0.
155
156 -q
157 Be quiet.
158
159 -v
160 Be verbose.
161
162 -h
163 Print command line help.
164
166 0
167 Success.
168
169 -1
170 Failure.
171
173 Project web site: https://bitbucket.org/PTV_Claus/cc1541/src
174
176 Please report bugs to:
177 https://bitbucket.org/PTV_Claus/cc1541/issues/new
178
180 Copyright © 2008-2021 JackAsser, Krill, Claus, Björn Esser.
181
182 Permission is hereby granted, free of charge, to any person obtaining a
183 copy of this software and associated documentation files (the
184 "Software"), to deal in the Software without restriction, including
185 without limitation the rights to use, copy, modify, merge, publish,
186 distribute, sublicense, and/or sell copies of the Software, and to
187 permit persons to whom the Software is furnished to do so, subject to
188 the following conditions:
189
190 The above copyright notice and this permission notice shall be included
191 in all copies or substantial portions of the Software.
192
193 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
194 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
195 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
196 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
197 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
198 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
199 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
200
202 Björn Esser <besser82@fedoraproject.org>
203 Author.
204
205
206
207cc1541 v4.1 03/05/2023 CC1541(1)