summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/supertnk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/supertnk.cpp')
-rw-r--r--src/mame/drivers/supertnk.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/drivers/supertnk.cpp b/src/mame/drivers/supertnk.cpp
index 938ab46a2fc..c399e38dccd 100644
--- a/src/mame/drivers/supertnk.cpp
+++ b/src/mame/drivers/supertnk.cpp
@@ -99,6 +99,7 @@ CRU lines:
#include "emu.h"
#include "cpu/tms9900/tms9980a.h"
+#include "machine/watchdog.h"
#include "sound/ay8910.h"
@@ -327,7 +328,7 @@ static ADDRESS_MAP_START( supertnk_io_map, AS_IO, 8, supertnk_state )
AM_RANGE(0x0402, 0x0402) AM_WRITE(supertnk_bankswitch_0_w)
AM_RANGE(0x0404, 0x0404) AM_WRITE(supertnk_bankswitch_1_w)
AM_RANGE(0x0406, 0x0406) AM_WRITE(supertnk_interrupt_ack_w)
- AM_RANGE(0x0407, 0x0407) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x0407, 0x0407) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
ADDRESS_MAP_END
@@ -425,6 +426,8 @@ static MACHINE_CONFIG_START( supertnk, supertnk_state )
MCFG_TMS99xx_ADD("maincpu", TMS9980A, 2598750, supertnk_map, supertnk_io_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", supertnk_state, supertnk_interrupt)
+ MCFG_WATCHDOG_ADD("watchdog")
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)