summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/twin16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/twin16.cpp')
-rw-r--r--src/mame/drivers/twin16.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/twin16.cpp b/src/mame/drivers/twin16.cpp
index d05c6371ccb..e25c719d8d5 100644
--- a/src/mame/drivers/twin16.cpp
+++ b/src/mame/drivers/twin16.cpp
@@ -50,6 +50,7 @@ Known Issues:
#include "cpu/z80/z80.h"
#include "sound/2151intf.h"
#include "machine/nvram.h"
+#include "machine/watchdog.h"
#include "includes/twin16.h"
#include "includes/konamipt.h"
@@ -185,7 +186,7 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, twin16_state )
AM_RANGE(0x0a0004, 0x0a0005) AM_READ_PORT("P2")
AM_RANGE(0x0a0006, 0x0a0007) AM_READ_PORT("P3")
AM_RANGE(0x0a0008, 0x0a0009) AM_WRITE8(soundlatch_byte_w, 0x00ff)
- AM_RANGE(0x0a0010, 0x0a0011) AM_READ_PORT("DSW2") AM_WRITE(watchdog_reset16_w)
+ AM_RANGE(0x0a0010, 0x0a0011) AM_READ_PORT("DSW2") AM_DEVWRITE("watchdog", watchdog_timer_device, reset16_w)
AM_RANGE(0x0a0012, 0x0a0013) AM_READ_PORT("DSW1")
AM_RANGE(0x0a0018, 0x0a0019) AM_READ_PORT("DSW3")
AM_RANGE(0x0c0000, 0x0c000f) AM_WRITE(video_register_w)
@@ -222,7 +223,7 @@ static ADDRESS_MAP_START( fround_map, AS_PROGRAM, 16, fround_state )
AM_RANGE(0x0a0002, 0x0a0003) AM_READ_PORT("P1")
AM_RANGE(0x0a0004, 0x0a0005) AM_READ_PORT("P2")
AM_RANGE(0x0a0008, 0x0a0009) AM_WRITE8(soundlatch_byte_w, 0x00ff)
- AM_RANGE(0x0a0010, 0x0a0011) AM_READ_PORT("DSW2") AM_WRITE(watchdog_reset16_w)
+ AM_RANGE(0x0a0010, 0x0a0011) AM_READ_PORT("DSW2") AM_DEVWRITE("watchdog", watchdog_timer_device, reset16_w)
AM_RANGE(0x0a0012, 0x0a0013) AM_READ_PORT("DSW1")
AM_RANGE(0x0a0018, 0x0a0019) AM_READ_PORT("DSW3")
AM_RANGE(0x0c0000, 0x0c000f) AM_WRITE(video_register_w)
@@ -673,6 +674,8 @@ static MACHINE_CONFIG_START( twin16, twin16_state )
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
+ MCFG_WATCHDOG_ADD("watchdog")
+
// video hardware
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
@@ -723,6 +726,8 @@ static MACHINE_CONFIG_START( fround, fround_state )
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
+ MCFG_WATCHDOG_ADD("watchdog")
+
/* video hardware */
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")