I think I’ve stumbled on something.
I don’t think I’m capturing enough data.
13,824 has been my magic number forever. It was larger than the 13,800 that Marco used in afr.c. But I’m beginning to question this.
Note that sector 4 is my bad sector!
My current disk, cyl 6, lower track layout:
first whole sector starts here:
sectors 5-10: 1034, 2122, 3210, 4298, 5386, 6474
GAP: gap is ~846 bytes (8408-(6474+1088))
sectors 0-4 positions: 8408, 9492, 10580, 11668, and sector 4 : 12756
If you add 1088 to 12756, you get 13,844 lo and behold past my reading marker!!
I’m not sure I have a reference for largest gap? Maybe I can check the bits per track in the floppy material and derive my answer from that…
I’m thinking of upping this to 16,384 just to be safe….. I’ll get back to you.
Note that there was not enough room for sector 4 to be read in at the beginning. I’m 20 bytes short on this sector at the end, but worst case is even higher. Like at least 1088-1034 or 54 bytes. Plus whatever the gap maxes at…….