1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 17:29:36 +00:00

Make references to constant non-specific.

This commit is contained in:
Thomas Harte 2024-01-02 09:26:47 -05:00
parent e69c777373
commit db4c802003

View File

@ -79,9 +79,9 @@ std::shared_ptr<::Storage::Disk::Track> NIB::get_track_at_position(::Storage::Di
}
// NIB files leave sync bytes implicit and make no guarantees
// about overall track positioning. The attempt works by locating
// any single run of FF that is sufficiently long and marking the last
// five as including slip bits.
// about overall track positioning. This attempt to map to real
// flux locates any single run of FF that is sufficiently long
// and marks the last few as including slip bits.
std::set<size_t> sync_locations;
for(size_t index = 0; index < track_data.size(); ++index) {
// Count the number of FFs starting from here.
@ -92,7 +92,7 @@ std::shared_ptr<::Storage::Disk::Track> NIB::get_track_at_position(::Storage::Di
++length;
}
// If that's at least five, regress and mark all as syncs.
// If that's long enough, regress and mark syncs.
if(length >= MinimumSyncByteCount) {
for(int c = 0; c < int(MinimumSyncByteCount); c++) {
end = (end + track_data.size() - 1) % track_data.size();