mirror of
https://github.com/holub/mame
synced 2025-06-08 13:53:52 +03:00
wd_fdc: Drop DRQ when ending a normal command or starting a "Force Interrupt" command
This commit is contained in:
parent
2518ba9a42
commit
60ced2cb0c
@ -366,7 +366,9 @@ void wd_fdc_device_base::command_end()
|
|||||||
main_state = sub_state = IDLE;
|
main_state = sub_state = IDLE;
|
||||||
motor_timeout = 0;
|
motor_timeout = 0;
|
||||||
|
|
||||||
if(!drq && (status & S_BUSY)) {
|
if(drq)
|
||||||
|
drop_drq();
|
||||||
|
else if (status & S_BUSY) {
|
||||||
if (!t_cmd->enabled()) {
|
if (!t_cmd->enabled()) {
|
||||||
status &= ~S_BUSY;
|
status &= ~S_BUSY;
|
||||||
}
|
}
|
||||||
@ -1096,6 +1098,12 @@ void wd_fdc_device_base::interrupt_start()
|
|||||||
status_type_1 = true;
|
status_type_1 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(drq) {
|
||||||
|
drq = false;
|
||||||
|
if(!drq_cb.isnull())
|
||||||
|
drq_cb(false);
|
||||||
|
}
|
||||||
|
|
||||||
intrq_cond = command & 0x0f;
|
intrq_cond = command & 0x0f;
|
||||||
|
|
||||||
if(!intrq && (command & I_IMM)) {
|
if(!intrq && (command & I_IMM)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user