pelrun / dsk2cdt2disc

Convert CPC DSK files to a tape image that will rebuild the disc when loaded.
12 stars 3 forks source link

Fix handling of non-standard track size tables #16

Closed pelrun closed 2 years ago

pelrun commented 2 years ago

The extended dsk specification says the track size table in the DIB should be uint16_t, but I've now seen multiple images where the table is uint8_t instead and storing the high byte only.

pelrun commented 2 years ago

Looks like I already treat the table as uint8_t; that probably means the spec is wrong.

pelrun commented 2 years ago

The copy of the spec on cpcwiki contains the high-byte-only definition, so it's probably what everyone else is using.