1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Added a tester for the control mark.

This commit is contained in:
Thomas Harte 2017-08-12 17:35:14 -04:00
parent 11d0c37506
commit 5f42022c1d

View File

@ -42,6 +42,8 @@ using namespace Intel;
#define SetMissingAddressMark() (status_[1] |= 0x01)
#define SetControlMark() (status_[2] |= 0x40)
#define ControlMark() (status_[2] & 0x40)
#define SetDataFieldDataError() (status_[2] |= 0x20)
#define SetWrongCyinder() (status_[2] |= 0x10)
#define SetScanEqualHit() (status_[2] |= 0x08)
@ -393,7 +395,7 @@ void i8272::posit_event(int event_type) {
// check whether that's it: either the final requested sector has been read, or because
// a sector that was [/wasn't] marked as deleted when it shouldn't [/should] have been
if(sector_ != command_[6] && !(status_[2]&0x40)) {
if(sector_ != command_[6] && !ControlMark()) {
sector_++;
goto read_next_data;
}