npomarede wrote:in my case in the STX library I wrote for Hatari, I never use the Sync Position available in some cases before track data, because I just didn't find any doc for it, and all games seem to work well without this so far. So I have no idea what the original pasti.dll does with this. Maybe it's related to the "pseudo random" bytes returned by a read track before the first 3 A1. When doing multiple read track on a floppy, we can see that these bytes are changing and I think pasti.dll tries to mimic that, but it fails sometimes (I think that's what prevented Jupiter Masterdrive from working). Under Hatari I also never try to randomizes those first bytes, I returned them as they were stored in the STX files.
Nicolas
This makes sense. My guess is that it is here for historical reason. Now the pasti imager does not write it anymore. Basically it allows you to find the location of the first sector.
But the right way to find position of sectors is to use the bitPosition of the SectorDescriptor. This value gives the position by counting the number of DATA bits (not MFM bits) so assuming 2µs for cell you can multiply the bitPosition by 4 to get the position. Of course you have to wrap around if this value is bigger than 200ms (you should do it because it works in Hatari

)
Now back to Albedo
DrCoolZic wrote:Actually one big difference is that first sector with Aufit is sector 1 at bit position 90 (see previous post)
and the one made with pasti imager sector 1 is the last with a bit position of 50144 this value seems extremely suspicious ??? knowing that the track has 39469 flux ???
In the file generated by Pasti for reason I ignore the first sector (sector 1) is read as the last sector of the track. The position is 50144 in bit or roughly 200576 µs. So this is really 576 µs
In the file generated by Aufit the position is 90 in bits or 360 µs
Now if you take the pasti with fistSync offset, that I have generated, a value of 8 is given for the first sector (sect 1). If you add the sync this gives you a position of (8+3) * 32 = 384 µs and I guess this is helping pasti to compute the right position for sector 1.
I do not have the Albedo disk so I would be interested if someone (Brume?) with the disk can make the following test:
- with albedo in the drive starts Panzer
- execute the "Read IDs" command on track 0
- report the result
This command wait for the index pulse then send 24 read address commands and figure out the number of sectors on the track and of course their order.
If there is enough time between the detection of the index pulse and reception of the read address commands then the WD1772 should find sector 1 as the first sector. Otherwise if it is not the first it will be placed as the last.