1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Switch stepping direction.

Empirically, based on the actions of Kickstart, and assuming my confusion is because the relevant signal is active low.
This commit is contained in:
Thomas Harte 2021-10-05 15:23:48 -07:00
parent 2cf5bcc5db
commit ad4afcdcd5

View File

@ -1038,7 +1038,7 @@ void Chipset::DiskController::set_mtr_sel_side_dir_step(uint8_t value) {
const int side = (value & 0x04) ? 0 : 1;
const bool did_step = (difference & 0x1) && !(value & 0x1);
const auto direction = Storage::Disk::HeadPosition(
(value & 0x02) ? -1 : 1
(value & 0x02) ? 1 : -1
);
for(int c = 0; c < 4; c++) {