summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:47:21 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:47:21 -0400
commit283c2c1239ed21406f2007265331fb9540b1c52d (patch)
tree14a30fd31881626df5429b17e690909c03c41363
parentfd2a8a5546129937315627058330efff8a91d4bc (diff)
taotaido: Add MB3773 device (nw)
-rw-r--r--src/mame/drivers/taotaido.cpp6
-rw-r--r--src/mame/includes/taotaido.h3
2 files changed, 8 insertions, 1 deletions
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<gfxdecode_device> m_gfxdecode;
required_device<vsystem_spr_device> m_spr;
required_device<generic_latch_8_device> m_soundlatch;
+ required_device<mb3773_device> m_watchdog;
required_shared_ptr<uint16_t> m_spriteram;
required_shared_ptr<uint16_t> m_spriteram2;