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
1 changed files with 1 additions and 1 deletions

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)];