summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-08-29 11:37:57 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-08-29 11:37:57 -0400
commit7136921a0f928e2676a2e0e30e0d7b1d2914864c (patch)
tree0607f6773745016a968309fa8d14318cbb5c8dcd
parentfd32629f147375cf7eb635ef6071302641c3604f (diff)
gcpinbal: Add watchdog (nw)
-rw-r--r--src/mame/drivers/gcpinbal.cpp6
-rw-r--r--src/mame/includes/gcpinbal.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/mame/drivers/gcpinbal.cpp b/src/mame/drivers/gcpinbal.cpp
index fbe9ee8e4c9..25c3c3f6bda 100644
--- a/src/mame/drivers/gcpinbal.cpp
+++ b/src/mame/drivers/gcpinbal.cpp
@@ -49,7 +49,7 @@ ES-9209B
| 6116 | | AS7C256 |
| 6116 +-------+ AS7C256 |
|J AS7C256 |
-|A AS7C256 AS7C256 |
+|A MB3773 AS7C256 AS7C256 |
|M TSW1* +-------+ U13* |
|M PAL 32MHz |ES-9303| U11 |
|A PAL 68000P-16 +-------+ |
@@ -147,6 +147,8 @@ WRITE8_MEMBER(gcpinbal_state::bank_w)
m_bg0_gfxset = (data & 0x04) ? 0x1000 : 0;
m_bg1_gfxset = (data & 0x08) ? 0x1000 : 0;
+ m_watchdog->write_line_ck(BIT(data, 7));
+
// machine().bookkeeping().coin_lockout_w(0, ~data & 0x01);
// machine().bookkeeping().coin_lockout_w(1, ~data & 0x02);
}
@@ -456,6 +458,8 @@ static MACHINE_CONFIG_START( gcpinbal )
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
+ MCFG_DEVICE_ADD("watchdog", MB3773, 0)
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/includes/gcpinbal.h b/src/mame/includes/gcpinbal.h
index ce557b289a6..84b9a1b96cf 100644
--- a/src/mame/includes/gcpinbal.h
+++ b/src/mame/includes/gcpinbal.h
@@ -3,6 +3,7 @@
#include "machine/74157.h"
#include "machine/eepromser.h"
+#include "machine/mb3773.h"
#include "sound/okim6295.h"
#include "sound/msm5205.h"
#include "video/excellent_spr.h"
@@ -19,6 +20,7 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
+ m_watchdog(*this, "watchdog"),
m_oki(*this, "oki"),
m_msm(*this, "msm"),
m_adpcm_select(*this, "adpcm_select"),
@@ -33,6 +35,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<mb3773_device> m_watchdog;
required_device<okim6295_device> m_oki;
required_device<msm6585_device> m_msm;
required_device<hct157_device> m_adpcm_select;