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

Creates the through-path that will be necessary for RWTS acceleration.

This commit is contained in:
Thomas Harte
2018-06-09 12:51:53 -04:00
parent fb4bb21bf6
commit dde9b73a22
7 changed files with 42 additions and 6 deletions
+12
View File
@@ -77,6 +77,18 @@ void Drive::step(HeadPosition offset) {
}
}
std::shared_ptr<Track> Drive::step_to(HeadPosition offset) {
HeadPosition old_head_position = head_position_;
head_position_ = std::max(offset, HeadPosition(0));
if(head_position_ != old_head_position) {
track_ = nullptr;
setup_track();
}
return track_;
}
void Drive::set_head(int head) {
head = std::min(head, available_heads_ - 1);
if(head != head_) {