1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-17 10:06:21 +00:00

Make some effort at terminating appropriate if no sector.

This commit is contained in:
Thomas Harte 2023-12-01 09:47:52 -05:00
parent 88e67d9ad6
commit 4429448815

View File

@ -171,6 +171,14 @@ class FloppyController {
} }
if(!found_sector) { if(!found_sector) {
// TODO: there's more than this, I think.
status_.set(Intel::i8272::Status0::AbnormalTermination);
results_.serialise(
status_,
decoder_.geometry().cylinder,
decoder_.geometry().head,
decoder_.geometry().sector,
decoder_.geometry().size);
} }
pic_.apply_edge<6>(true); pic_.apply_edge<6>(true);