per
Veteran Member
Does anyone know of a program that can parse a CP/M 2.2 disk images for file entries on a recent PC? The program I wish to exist should be able to handle disks of various different Heads per disk/Tracks per side/Sectors per Track/Bytes per secror values.
Writing such a program shouldn't be too hard, as the CP/M disk structure is fairly well known. Generally the two first tracks consist of boot data, while the file directory starts at the third track, immediately followed by data.
Each entry in the table consists of 32 bytes, as explained here:
http://www.cpm8680.com/cpmtools/cpm.htm
In my case the disk has 1 side, 40 tracks, 10 sectors per track, and 512 bytes per sector. It follows the standard with the filetable and data starting at the third track, and the table consist of 40 entries.
I know I can just use 22Disk, but that's quite too much a hassle when dealing with emulators.
Writing such a program shouldn't be too hard, as the CP/M disk structure is fairly well known. Generally the two first tracks consist of boot data, while the file directory starts at the third track, immediately followed by data.
Each entry in the table consists of 32 bytes, as explained here:
http://www.cpm8680.com/cpmtools/cpm.htm
In my case the disk has 1 side, 40 tracks, 10 sectors per track, and 512 bytes per sector. It follows the standard with the filetable and data starting at the third track, and the table consist of 40 entries.
I know I can just use 22Disk, but that's quite too much a hassle when dealing with emulators.