summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:15:58 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:15:58 -0400
commit7cf819740b027876b251bb67da7498c41fdb9876 (patch)
tree47cebbb5cbe8cbb9d1ecdf03267611dad5b43ff9
parent1ad81d5f4585d171b9064786f77eff5774f4adf4 (diff)
gstriker.cpp: Add MB3773 device (nw)
-rw-r--r--src/mame/drivers/gstriker.cpp5
-rw-r--r--src/mame/includes/gstriker.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/drivers/gstriker.cpp b/src/mame/drivers/gstriker.cpp
index 28785381abb..2671c1e8675 100644
--- a/src/mame/drivers/gstriker.cpp
+++ b/src/mame/drivers/gstriker.cpp
@@ -191,7 +191,8 @@ void gstriker_state::machine_start()
WRITE8_MEMBER(gstriker_state::porth_w)
{
- // bit 3 changes very frequently
+ m_watchdog->write_line_ck(BIT(data, 3));
+
// bits 1 and 2 also output by vgoalsoc
}
@@ -492,6 +493,8 @@ static MACHINE_CONFIG_START( gstriker )
MCFG_VS9209_IN_PORTH_CB(DEVREADLINE("soundlatch", generic_latch_8_device, pending_r)) MCFG_DEVCB_BIT(0)
MCFG_VS9209_OUT_PORTH_CB(WRITE8(gstriker_state, porth_w))
+ MCFG_DEVICE_ADD("watchdog", MB3773, 0)
+
MCFG_SCREEN_ADD("screen", RASTER)
// MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/includes/gstriker.h b/src/mame/includes/gstriker.h
index e248754aac1..8353b5a18e3 100644
--- a/src/mame/includes/gstriker.h
+++ b/src/mame/includes/gstriker.h
@@ -5,6 +5,7 @@
#define __GSTRIKER_H
#include "machine/gen_latch.h"
+#include "machine/mb3773.h"
#include "video/vsystem_spr.h"
#include "video/mb60553.h"
#include "video/vs920a.h"
@@ -26,6 +27,7 @@ public:
m_screen(*this, "screen"),
m_palette(*this, "palette"),
m_soundlatch(*this, "soundlatch"),
+ m_watchdog(*this, "watchdog"),
m_CG10103_m_vram(*this, "cg10103_m_vram"),
m_work_ram(*this, "work_ram"),
m_mixerregs1(*this, "mixerregs1"),
@@ -41,6 +43,7 @@ public:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
required_device<generic_latch_8_device> m_soundlatch;
+ required_device<mb3773_device> m_watchdog;
required_shared_ptr<uint16_t> m_CG10103_m_vram;
required_shared_ptr<uint16_t> m_work_ram;