summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/wolfpack.cpp
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-04-30 16:31:47 -0400
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-04-30 16:39:27 -0400
commitdafe4d8e22d41a6d2f79c1d1d076ca1a18291401 (patch)
tree11a27122fbf7a667498a60c1270443e6c75c4e27 /src/mame/drivers/wolfpack.cpp
parenta717ba24ede14435f1c4f0dd15f76b2812db27b7 (diff)
Make watchdog timer a separate device
- Separate watchdog implementation from running_machine (once again) and driver_device - Old-style methods, now hidden behind #ifdefs, will probably be safe to remove soon
Diffstat (limited to 'src/mame/drivers/wolfpack.cpp')
-rw-r--r--src/mame/drivers/wolfpack.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/drivers/wolfpack.cpp b/src/mame/drivers/wolfpack.cpp
index 6d8514d7fa5..549628162ae 100644
--- a/src/mame/drivers/wolfpack.cpp
+++ b/src/mame/drivers/wolfpack.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
+#include "machine/watchdog.h"
#include "includes/wolfpack.h"
@@ -153,7 +154,7 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, wolfpack_state )
AM_RANGE(0x4004, 0x4004) AM_WRITE(wolfpack_ship_pic_w)
AM_RANGE(0x4005, 0x4005) AM_WRITE(wolfpack_torpedo_h_w)
AM_RANGE(0x4006, 0x4006) AM_WRITE(wolfpack_torpedo_v_w)
- AM_RANGE(0x5000, 0x5fff) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x5000, 0x5fff) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x7000, 0x7fff) AM_ROM
AM_RANGE(0x9000, 0x9000) AM_READNOP /* debugger ROM location? */
AM_RANGE(0xf000, 0xffff) AM_ROM
@@ -303,6 +304,8 @@ static MACHINE_CONFIG_START( wolfpack, wolfpack_state )
MCFG_CPU_ADD("maincpu", M6502, 12096000 / 16)
MCFG_CPU_PROGRAM_MAP(main_map)
+ MCFG_WATCHDOG_ADD("watchdog")
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)