mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
gcpinbal: Add watchdog (nw)
This commit is contained in:
parent
fd32629f14
commit
7136921a0f
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user