From 283c2c1239ed21406f2007265331fb9540b1c52d Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 16 Jun 2017 23:47:21 -0400 Subject: taotaido: Add MB3773 device (nw) --- src/mame/drivers/taotaido.cpp | 6 +++++- src/mame/includes/taotaido.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/taotaido.cpp b/src/mame/drivers/taotaido.cpp index 307920a57cd..2696b58bad4 100644 --- a/src/mame/drivers/taotaido.cpp +++ b/src/mame/drivers/taotaido.cpp @@ -91,7 +91,9 @@ READ16_MEMBER(taotaido_state::pending_command_r) WRITE8_MEMBER(taotaido_state::unknown_output_w) { - // Bits 7, 5, 4 used? + m_watchdog->write_line_ck(BIT(data, 7)); + + // Bits 5, 4 also used? } static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, taotaido_state ) @@ -366,6 +368,8 @@ static MACHINE_CONFIG_START( taotaido ) MCFG_VS9209_IN_PORTA_CB(IOPORT("P3")) // used only by taotaida MCFG_VS9209_IN_PORTB_CB(IOPORT("P4")) // used only by taotaida + MCFG_DEVICE_ADD("watchdog", MB3773, 0) + MCFG_GFXDECODE_ADD("gfxdecode", "palette", taotaido) MCFG_SCREEN_ADD("screen", RASTER) diff --git a/src/mame/includes/taotaido.h b/src/mame/includes/taotaido.h index 4f58a76aeea..e86a13d106f 100644 --- a/src/mame/includes/taotaido.h +++ b/src/mame/includes/taotaido.h @@ -5,6 +5,7 @@ #include "video/vsystem_spr.h" #include "machine/gen_latch.h" +#include "machine/mb3773.h" class taotaido_state : public driver_device { @@ -16,6 +17,7 @@ public: m_gfxdecode(*this, "gfxdecode"), m_spr(*this, "vsystem_spr"), m_soundlatch(*this, "soundlatch"), + m_watchdog(*this, "watchdog"), m_spriteram(*this, "spriteram"), m_spriteram2(*this, "spriteram2"), m_scrollram(*this, "scrollram"), @@ -26,6 +28,7 @@ public: required_device m_gfxdecode; required_device m_spr; required_device m_soundlatch; + required_device m_watchdog; required_shared_ptr m_spriteram; required_shared_ptr m_spriteram2; -- cgit v1.2.3