1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Also attaches IWM select line.

This commit is contained in:
Thomas Harte 2020-11-10 18:59:23 -05:00
parent 6ba517a4c1
commit ece9382a4e

View File

@ -466,6 +466,14 @@ class ConcreteMachine:
// b7: 0 = use head 0; 1 = use head 1.
// b6: 0 = use 5.25" disks; 1 = use 3.5".
printf("TODO: Disk interface register [%d]\n", is_read);
if(!is_read) {
disk_select_ = *value;
iwm_->set_select(*value & 0x80);
// Presumably bit 6 selects between two 5.25" drives rather than the two 3.5"?
} else {
*value = disk_select_;
}
break;
default:
@ -646,6 +654,7 @@ class ConcreteMachine:
bool test_mode_ = false;
uint8_t language_ = 0;
uint8_t disk_select_ = 0;
};
}