Update DiskImage.cpp
Frank's fix for #200 FindSync was not looping the disk track correctly.
This commit is contained in:
parent
9c1f8320d2
commit
8e87777759
1 changed files with 1 additions and 1 deletions
|
@ -1527,7 +1527,7 @@ int DiskImage::FindSync(unsigned track, int bitIndex, int maxBits, int* syncStar
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bitIndex++;
|
bitIndex++;
|
||||||
if (bitIndex >= MAX_TRACK_LENGTH * 8)
|
if (bitIndex >= int(BitsInTrack(track)))
|
||||||
bitIndex = 0;
|
bitIndex = 0;
|
||||||
#if defined(EXPERIMENTALZERO)
|
#if defined(EXPERIMENTALZERO)
|
||||||
byte = tracks[(track << 13)+(bitIndex >> 3)];
|
byte = tracks[(track << 13)+(bitIndex >> 3)];
|
||||||
|
|
Loading…
Reference in a new issue