-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for TRS-80 DMK image files #449
Comments
BTW, for those who still have Catweasels and use As I've been deep-diving on the DMK format, I've been learning there's various subtleties and extensions, that as far as I can tell, have remained publicly undocumented. I have run across a copy of the informal standard on GitHub: https://github.com/lutris/openmsx/blob/master/doc/DMK-Format-Details.txt. I plan on getting these subtleties and extensions publicly documented. If the maintainer of this repo doesn't accept PRs, I'll start another repo for just documenting the DMK tweaks and mods that has happened over the years, mostly to support uncommon disk and encoding formats. Those extensions though shouldn't stop anyone from adding general DMK support to |
I put a first cut on branch Actually they were created with |
I believe on the CZSDOS and CZMDOS disks, you're getting CRC errors because your sector size is too short by 4 bytes. You need to "lie" to your algorithms to add another 4 bytes. I did this to my own DMK utility (dmkdump) to +4 their sector size as a quick hack and then I got valid CRC reads from your example DMKs. In |
DMK is also used on the TRS Color Computer emulators as well as a modified version of DMK for the CoCoSDC. :) |
Discussed in #393
Originally posted by malmacleod January 4, 2024
Hello Keir,
I am a relatively new user of the Greaseweazle, but have been very impressed with it so far. I've also been using ImageDisk and Catweasel for many years.
My main use at the moment for the Greaseweazle is to archive and recreate 5.25" FM/MFM disks for the TRS-80 Models 1, 3 & 4. I've been doing this successfully with DSK and IMD files, but it would be great if support for DMK could also be added. DSK in particular is not well suited for the TRS-80, because of the non-standard DAMs used in the directory track (I'm aware that you dealt with this issue last year for the TRS-80 Model 1) and of course this metadata is not stored in DSK files (which in the TRS80 world are sometimes called JV1 files).
DMK was used by some early PC-based TRS-80 emulators such as TRS32 (and DMK is still supported by current emulators such as TRS80gp), and there are many online repositories for TRS-80 disks that are only in DMK format (often these are named as DSK files, but on examination of the first 4 bytes they can be verified as being DMK files).
Would it be possible to add support for DMK please? If so, that would lessen the dependence that I currently have to use Catweasel for this task. FYI the DMK spec is available here -> http://cpmarchives.classiccmp.org//trs80/mirrors/www.discover-net.net/~dmkeil/trs80/trstech.htm#Technical-DMK-disks
Secondary question: Are there any other file formats (ie not DSK or IMD) already supported by Greaseweazle that are well suited for FM/MFM-formatted disks? By that I mean containers that have good metadata storage for DAMs, interleave, etc.
An example of a DMK file for the TRS-80 is LS-DOS 6.3.1H on this page -> https://www.tim-mann.org/misosys.html
If you need any further info or examples, I'm happy to help!
Mal
The text was updated successfully, but these errors were encountered: