Post Reply 
SS/80 Exerciser
08-08-2017, 05:13 AM
Post: #18
RE: SS/80 Exerciser
Given that I was not 100% not sure how teledisk encoded and managed with errors I have been rereading documents and I have been working through teledisk_loader.c (the main teledisk decoder) to examine the decoding process more carefully. I have rewritten much of teledisk_loader.c and now plan to merge it into my td02lif.c wrapper. It will be much easier to patch up bad tracks with missing or bogus sectors.

I noticed while doing this rewrite that images created by the old TELEDISK dos program did not store CRC values for the sector header information itself at all - just a 1 byte CRC for the much larger sector data. The 1 byte data CRC makes no sense - the lack of checking the CRC for the sector header is a bug. They used 2 byte CRC with the teledisk comment and 1 or 0 bytes for most of everything else. The smaller size vs 2 byte CRC would only save a few percent on image sizes. Well perhaps this may reflect as to why we can have broken teledisk images with no hint as to how.

Fortunately I can do a number of sanity checks - verify we have all of the sectors on all tracks.
Eliminate all sectors whose size does not match those on the track 0. Parse the LIF data while reading and stop after the last record - not at the end of disk, etc...

I hope to have my updated code on github in a few days...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
SS/80 Exerciser - Dave Frederickson - 05-15-2016, 06:51 PM
RE: SS/80 Exerciser - Martin Hepperle - 05-18-2016, 07:16 AM
RE: SS/80 Exerciser - Dave Frederickson - 05-18-2016, 03:14 PM
RE: SS/80 Exerciser - Martin Hepperle - 05-19-2016, 07:07 AM
RE: SS/80 Exerciser - magore - 07-24-2017, 05:39 AM
RE: SS/80 Exerciser - Dave Frederickson - 07-26-2017, 06:08 PM
RE: SS/80 Exerciser - magore - 07-28-2017, 01:37 AM
RE: SS/80 Exerciser - rprosperi - 07-28-2017, 09:34 PM
RE: SS/80 Exerciser - Martin Hepperle - 07-31-2017, 11:41 AM
RE: SS/80 Exerciser - Martin Hepperle - 08-02-2017, 07:11 AM
RE: SS/80 Exerciser - magore - 08-02-2017, 04:22 PM
RE: SS/80 Exerciser - magore - 08-02-2017, 04:30 PM
RE: SS/80 Exerciser - magore - 08-03-2017, 01:08 AM
RE: SS/80 Exerciser - magore - 08-03-2017, 02:15 AM
RE: SS/80 Exerciser - magore - 08-03-2017, 02:19 AM
RE: SS/80 Exerciser - Martin Hepperle - 08-03-2017, 07:25 AM
RE: SS/80 Exerciser - magore - 08-06-2017, 04:10 AM
RE: SS/80 Exerciser - magore - 08-08-2017 05:13 AM



User(s) browsing this thread: 1 Guest(s)