Update DiskImage.cpp

Frank's fix for #200 FindSync was not looping the disk track correctly.
This commit is contained in:
Stephen White 2020-12-27 13:12:05 +11:00
parent 9c1f8320d2
commit 8e87777759

View file

@ -1527,7 +1527,7 @@ int DiskImage::FindSync(unsigned track, int bitIndex, int maxBits, int* syncStar
else
{
bitIndex++;
if (bitIndex >= MAX_TRACK_LENGTH * 8)
if (bitIndex >= int(BitsInTrack(track)))
bitIndex = 0;
#if defined(EXPERIMENTALZERO)
byte = tracks[(track << 13)+(bitIndex >> 3)];