qbarnes / cw2dmk

The new home of Tim Mann's CatWeasel support tools for TRS-80 floppy preservation. The Releases area contains binaries for MS-DOS and x86_64 Linux.
http://www.tim-mann.org/catweasel.html
GNU General Public License v2.0
16 stars 2 forks source link

Allow -h0 in replay mode and document the need for it #17

Closed TimothyPMann closed 2 years ago

TimothyPMann commented 2 years ago

Reading in -h0 has the extra feature (previously not documented in the man page) of starting the DMK track 48 bytes prior to the first IDAM decoded from the track. This feature exists because otherwise there would often be so much garbage (i.e., a partial sector) at the front of the DMK track that the DMK track buffer would fill up before there is room for all the valid sectors.

This feature is needed when replaying an -h0 capture too, so this change allows that and recommends it in the man page.

Future: It might be a good idea to read the original options that were used in making the capture from the log file, and use at least some of them as defaults for the replay. -k and -h are prime candidates.

TimothyPMann commented 2 years ago

I've added the simple change to log all CW samples as part of this same pull request.