mirror of
https://github.com/holub/mame
synced 2025-10-09 17:53:01 +03:00
Merge pull request #4328 from hp9k/human_interface_reset
hp9k3xx: call reset() instead of manually resetting subdevices (nw)
This commit is contained in:
commit
bf9451944c
@ -144,13 +144,12 @@ void human_interface_device::device_reset()
|
|||||||
m_rtc->write_w(CLEAR_LINE);
|
m_rtc->write_w(CLEAR_LINE);
|
||||||
m_rtc->read_w(CLEAR_LINE);
|
m_rtc->read_w(CLEAR_LINE);
|
||||||
m_rtc->cs2_w(CLEAR_LINE);
|
m_rtc->cs2_w(CLEAR_LINE);
|
||||||
m_iocpu->reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(human_interface_device::reset_in)
|
WRITE_LINE_MEMBER(human_interface_device::reset_in)
|
||||||
{
|
{
|
||||||
if (state)
|
if (state)
|
||||||
device_reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void human_interface_device::update_gpib_irq()
|
void human_interface_device::update_gpib_irq()
|
||||||
@ -192,7 +191,7 @@ WRITE8_MEMBER(human_interface_device::gpib_w)
|
|||||||
|
|
||||||
switch (offset) {
|
switch (offset) {
|
||||||
case 0:
|
case 0:
|
||||||
device_reset();
|
reset();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
|
Loading…
Reference in New Issue
Block a user