From 4ca776854e8c430213b91461b191527660fbf805 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Sat, 23 Jun 2018 18:19:24 +0200 Subject: hp9k_3xx: IOCPU reset line is connected to cpu RESET I/O (nw) (#3689) --- src/mame/drivers/hp9k_3xx.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/hp9k_3xx.cpp b/src/mame/drivers/hp9k_3xx.cpp index 4b16c8b390d..47b449445a5 100644 --- a/src/mame/drivers/hp9k_3xx.cpp +++ b/src/mame/drivers/hp9k_3xx.cpp @@ -96,7 +96,7 @@ public: m_vram(*this, "vram") { } - required_device m_maincpu; + required_device m_maincpu; optional_device m_iocpu; optional_device m_mlc; optional_device m_sound; @@ -170,6 +170,8 @@ protected: private: + DECLARE_WRITE_LINE_MEMBER(cpu_reset); + static constexpr uint8_t HIL_CS = 0x01; static constexpr uint8_t HIL_WE = 0x02; static constexpr uint8_t HIL_OE = 0x04; @@ -319,9 +321,15 @@ 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) +{ + m_iocpu->reset(); +} + void hp9k3xx_state::machine_reset() { + m_maincpu->set_reset_callback(write_line_delegate(FUNC(hp9k3xx_state::cpu_reset), this)); } WRITE_LINE_MEMBER(hp9k3xx_state::gpib_irq) -- cgit v1.2.3