I've decided to add support for some more classic Z80 computers I used to use to my Ghidra modules, and the first Z80 systems I used were the TRS-80 model I and model III.
I've found documentation for the three main disk image formats, JV1, JV3, and DMK (though all tend to receive the same .DSK file extension). Anyway JV1 is a straight dump of the disk's tracks and sectors where sectors are always 256 bytes and there's always 10 sectors per track.
I've read that the directory is on track 17 and on some of my JV1 disk images I can locate it.
But I can't for the life of me find documentation on how this directory track is structured so that I can parse it.
I know there was a proliferation of first party and third party DOSes for these TRS-80s but I'm assuming at least the disk layout is the same.
In a hex editor I can see 16-byte directory entries starting 2 sectors into the track.
I can see five useful-looking bytes, then 8 chars filename plus 3 chars extension, then 8 more useful-looking bytes, then 8 bytes that look unused filled with FF
.
That's all I can make out. Does somebody know where this is documented or know from experience? Or does it actually vary per DOS flavour after all?