diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2016-04-30 16:31:47 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2016-04-30 16:39:27 -0400 |
commit | dafe4d8e22d41a6d2f79c1d1d076ca1a18291401 (patch) | |
tree | 11a27122fbf7a667498a60c1270443e6c75c4e27 /src/mame/drivers/thedealr.cpp | |
parent | a717ba24ede14435f1c4f0dd15f76b2812db27b7 (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/thedealr.cpp')
-rw-r--r-- | src/mame/drivers/thedealr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/drivers/thedealr.cpp b/src/mame/drivers/thedealr.cpp index 96a765dfda1..9649c0b27b9 100644 --- a/src/mame/drivers/thedealr.cpp +++ b/src/mame/drivers/thedealr.cpp @@ -33,6 +33,7 @@ #include "video/seta001.h" #include "sound/ay8910.h" #include "machine/nvram.h" +#include "machine/watchdog.h" class thedealr_state : public driver_device { @@ -289,7 +290,7 @@ static ADDRESS_MAP_START( thedealr, AS_PROGRAM, 8, thedealr_state ) AM_RANGE(0x3c00, 0x3c00) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, address_w) AM_RANGE(0x3c01, 0x3c01) AM_DEVWRITE ("aysnd", ay8910_device, data_w) - AM_RANGE(0x8000, 0x8000) AM_WRITE(watchdog_reset_w) + AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w) AM_RANGE(0x8000, 0xffff) AM_ROM AM_REGION("maincpu", 0) ADDRESS_MAP_END @@ -532,6 +533,8 @@ static MACHINE_CONFIG_START( thedealr, thedealr_state ) MCFG_NVRAM_ADD_0FILL("nvram") + MCFG_WATCHDOG_ADD("watchdog") + MCFG_DEVICE_ADD("spritegen", SETA001_SPRITE, 0) MCFG_SETA001_SPRITE_GFXDECODE("gfxdecode") |