summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author dxl <41547105+hp9k@users.noreply.github.com>2018-10-10 01:18:34 +0200
committer ajrhacker <ajrhacker@users.noreply.github.com>2018-10-09 19:18:34 -0400
commit5706fdccfdb066cc81734ec290d366f7dcd2e8d0 (patch)
treeb73a52251b74058cb762f0f7b658e94fad81eeaf
parent61f191cce6c605b827e8f7eb8159708ad86a2249 (diff)
hp9k_3xx: connect CPU reset line to DIO bus (nw) (#4099)
-rw-r--r--src/mame/drivers/hp9k_3xx.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mame/drivers/hp9k_3xx.cpp b/src/mame/drivers/hp9k_3xx.cpp
index c4168abdf3b..960980cb73e 100644
--- a/src/mame/drivers/hp9k_3xx.cpp
+++ b/src/mame/drivers/hp9k_3xx.cpp
@@ -128,8 +128,6 @@ private:
DECLARE_WRITE_LINE_MEMBER(dio_irq6_w) { m_maincpu->set_input_line_and_vector(M68K_IRQ_6, state, M68K_INT_ACK_AUTOVECTOR); };
DECLARE_WRITE_LINE_MEMBER(dio_irq7_w) { m_maincpu->set_input_line_and_vector(M68K_IRQ_7, state, M68K_INT_ACK_AUTOVECTOR); };
- DECLARE_WRITE_LINE_MEMBER(cpu_reset);
-
uint32_t m_lastpc;
};
@@ -257,10 +255,6 @@ uint32_t hp9k3xx_state::screen_update(screen_device &screen, bitmap_rgb32 &bitma
static INPUT_PORTS_START( hp9k330 )
INPUT_PORTS_END
-WRITE_LINE_MEMBER(hp9k3xx_state::cpu_reset)
-{
-}
-
void hp9k3xx_state::driver_start()
{
m_diag_led.resolve();
@@ -268,7 +262,9 @@ void hp9k3xx_state::driver_start()
void hp9k3xx_state::machine_reset()
{
- m_maincpu->set_reset_callback(write_line_delegate(FUNC(hp9k3xx_state::cpu_reset), this));
+ auto *dio = subdevice<bus::hp_dio::dio16_device>("diobus");
+ if (dio)
+ m_maincpu->set_reset_callback(write_line_delegate(FUNC(bus::hp_dio::dio16_device::reset_in), dio));
}
WRITE16_MEMBER(hp9k3xx_state::led_w)