mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Merge pull request #6326 from ajrhacker/wd_fdc_intrq
wd_fdc: Condition command completion interrupt on busy flag having be…
This commit is contained in:
commit
bed2f3a7c0
@ -275,7 +275,7 @@ void wd_fdc_device_base::command_end()
|
||||
main_state = sub_state = IDLE;
|
||||
motor_timeout = 0;
|
||||
|
||||
if (!drq) {
|
||||
if(!drq && (status & S_BUSY)) {
|
||||
status &= ~S_BUSY;
|
||||
intrq = true;
|
||||
if(!intrq_cb.isnull())
|
||||
@ -2194,7 +2194,7 @@ void wd_fdc_device_base::drop_drq()
|
||||
drq = false;
|
||||
if(!drq_cb.isnull())
|
||||
drq_cb(false);
|
||||
if (main_state == IDLE) {
|
||||
if(main_state == IDLE && (status & S_BUSY)) {
|
||||
status &= ~S_BUSY;
|
||||
intrq = true;
|
||||
if(!intrq_cb.isnull())
|
||||
|
Loading…
Reference in New Issue
Block a user