1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Makes disk head position explicitly something with sub-integral precision.

Also as a drive-by fix, corrects accidental assumption of 10 sectors for all MFMSectorDump descendants.
This commit is contained in:
Thomas Harte
2018-05-06 23:17:36 -04:00
parent 1139caa83f
commit f65c65569a
40 changed files with 135 additions and 97 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ void DiskII::set_control(Control control, bool on) {
// Compare to the stepper position to decide whether that pulls in the current cog notch,
// or grabs a later one.
drives_[active_drive_].step(-direction);
drives_[active_drive_].step(Storage::Disk::HeadPosition(-direction, 4));
stepper_position_ = (stepper_position_ - direction + 8) & 7;
}
}