diff options
Diffstat (limited to 'src/mame/drivers/shaolins.cpp')
-rw-r--r-- | src/mame/drivers/shaolins.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/drivers/shaolins.cpp b/src/mame/drivers/shaolins.cpp index 6774578e98b..613cf9e3620 100644 --- a/src/mame/drivers/shaolins.cpp +++ b/src/mame/drivers/shaolins.cpp @@ -10,6 +10,7 @@ driver by Allard van der Bas #include "emu.h" #include "cpu/m6809/m6809.h" +#include "machine/watchdog.h" #include "sound/sn76496.h" #include "includes/shaolins.h" @@ -30,7 +31,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(shaolins_state::interrupt) static ADDRESS_MAP_START( shaolins_map, AS_PROGRAM, 8, shaolins_state ) AM_RANGE(0x0000, 0x0000) AM_WRITE(nmi_w) /* bit 0 = flip screen, bit 1 = nmi enable, bit 2 = ? */ /* bit 3, bit 4 = coin counters */ - AM_RANGE(0x0100, 0x0100) AM_WRITE(watchdog_reset_w) + AM_RANGE(0x0100, 0x0100) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w) AM_RANGE(0x0300, 0x0300) AM_DEVWRITE("sn1", sn76489a_device, write) /* trigger chip to read from latch. The program always */ AM_RANGE(0x0400, 0x0400) AM_DEVWRITE("sn2", sn76489a_device, write) /* writes the same number as the latch, so we don't */ /* bother emulating them. */ @@ -193,6 +194,7 @@ static MACHINE_CONFIG_START( shaolins, shaolins_state ) MCFG_CPU_ADD("maincpu", M6809, MASTER_CLOCK/12) /* verified on pcb */ MCFG_CPU_PROGRAM_MAP(shaolins_map) MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", shaolins_state, interrupt, "screen", 0, 1) + MCFG_WATCHDOG_ADD("watchdog") /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |