mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-10 12:29:01 +00:00
The WD uses only the low two bits for sector size.
This commit is contained in:
parent
229b7b36ed
commit
d674fd0e67
@ -481,7 +481,7 @@ void WD1770::posit_event(int new_event_type) {
|
|||||||
status.data_request = true;
|
status.data_request = true;
|
||||||
});
|
});
|
||||||
distance_into_section_++;
|
distance_into_section_++;
|
||||||
if(distance_into_section_ == 128 << header_[3]) {
|
if(distance_into_section_ == 128 << (header_[3]&3)) {
|
||||||
distance_into_section_ = 0;
|
distance_into_section_ = 0;
|
||||||
goto type2_check_crc;
|
goto type2_check_crc;
|
||||||
}
|
}
|
||||||
@ -564,7 +564,7 @@ void WD1770::posit_event(int new_event_type) {
|
|||||||
*/
|
*/
|
||||||
write_byte(data_);
|
write_byte(data_);
|
||||||
distance_into_section_++;
|
distance_into_section_++;
|
||||||
if(distance_into_section_ == 128 << header_[3]) {
|
if(distance_into_section_ == 128 << (header_[3]&3)) {
|
||||||
goto type2_write_crc;
|
goto type2_write_crc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user