-
Notifications
You must be signed in to change notification settings - Fork 95
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 IMD image files #276
Comments
Can someone attach or link some interesting IMD files to this ticket for testing purposes? |
Some IMDs for the M20 can be found here: http://www.z80ne.com/m20/index.php?argument=sections/download/wrm20/wrm20.inc |
Please test the following build. It supports reading and writing IMD image files: |
Wow that was quick! I did a few tests and noticed that the checksum of the IMD file read back from floppy differs from the original IMD file written to it, which I guess is probably fine? Maybe just some flexible ordering of things inside the IMD which produces different checksum with same userdata? (Haven't read the specs.). In fact every-time I read the floppy again and again the resulting IMD has a different checksum. Converting the resulting IMD to IMG produces an expected output/ identical sector content, which is what matters. So I think it looks great. Some details: Files used: IMD source (f5e7509b) and its IMG version (7519913c). Testing:
The mismatching IMDs all boot fine in MAME and are identical to known IMG when converted. Conversion IMD -> IMG was done using MAME's floptool. As discussed here one needs to remove the 0xff padding to compare. For M20 images (only) I can use the following commands:
Thanks a lot for adding this! |
No problem! Regenerated IMD will always differ from the original because the image header contains the time of creation. Also there is a variable sized comment section in the same header. |
Interesting! Did you come across any tools/ an easy way to read these extra info (time/ comment) from the files under e.g. bash? Any chance I can use gw tools to convert between formats? |
The header is ASCII text so you can |
You can use |
Ok that was all far easier than I thought. Looking at some creation dates now. That's pretty neat. I find it's an interesting alternative to IMGs. Is the C code that you ported available somewere? Maybe at some point it can be added to enable write support also on the MAME side. |
C code is in my disk-utilities repo: https://github.com/keirf/disk-utilities/blob/master/libdisk/container/imd.c#L186 |
The original ImageDisk tool asks for the information much like AnaDisk. |
As per title. There are a few flexible formats like this which might also share code.
IMD spec:
imd.pdf
The text was updated successfully, but these errors were encountered: