mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Added a tester for the control mark.
This commit is contained in:
parent
11d0c37506
commit
5f42022c1d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user