mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
atom: fdc callbacks on connected devices only (nw)
This commit is contained in:
parent
7a4e38987f
commit
9a3e057bd6
@ -602,8 +602,14 @@ WRITE_LINE_MEMBER( atom_state::atom_8271_interrupt_callback )
|
||||
|
||||
WRITE_LINE_MEMBER( atom_state::motor_w )
|
||||
{
|
||||
m_fdc->subdevice<floppy_connector>("0")->get_device()->mon_w(!state);
|
||||
m_fdc->subdevice<floppy_connector>("1")->get_device()->mon_w(!state);
|
||||
for (int i=0; i != 2; i++) {
|
||||
char devname[1];
|
||||
sprintf(devname, "%d", i);
|
||||
floppy_connector *con = m_fdc->subdevice<floppy_connector>(devname);
|
||||
if (con) {
|
||||
con->get_device()->mon_w(!state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(atom_state::cassette_output_tick)
|
||||
|
Loading…
Reference in New Issue
Block a user