pelrun / dsk2cdt2disc

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

Fix bps/N field calculations #17

Closed pelrun closed 2 years ago

pelrun commented 2 years ago

This field is currently being treated as the high byte of the sector size, when it's apparently actually log2(bps)-7, the direct value out of the DPB. I don't know why this wasn't caught before, although the result is the same for standard 512-byte sectors, and any unusual images that still worked may have incorrectly filled this field.

Have also seen an instance (Red Sunset) where the logbps in TIB[0] is 0, but 2 in all the associated SIBs.

pelrun commented 2 years ago

Red Sunset is fixed by 7ae1313c6333515c85d0812ab2ee277ddedc5d3f

pelrun commented 2 years ago

DPB setting fixed by f079ee70e2820b80c0f5a20e0aa1be7c98041301