diff options
Diffstat (limited to 'src/mame/drivers/tehkanwc.cpp')
-rw-r--r-- | src/mame/drivers/tehkanwc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/drivers/tehkanwc.cpp b/src/mame/drivers/tehkanwc.cpp index ca761fcd478..9bf4a47e329 100644 --- a/src/mame/drivers/tehkanwc.cpp +++ b/src/mame/drivers/tehkanwc.cpp @@ -92,6 +92,7 @@ TO DO : #include "emu.h" #include "cpu/z80/z80.h" +#include "machine/watchdog.h" #include "sound/ay8910.h" #include "gridiron.lh" #include "includes/tehkanwc.h" @@ -246,7 +247,7 @@ static ADDRESS_MAP_START( main_mem, AS_PROGRAM, 8, tehkanwc_state ) AM_RANGE(0xf820, 0xf820) AM_READ(soundlatch2_byte_r) AM_WRITE(sound_command_w) /* answer from the sound CPU */ AM_RANGE(0xf840, 0xf840) AM_READ_PORT("DSW1") AM_WRITE(sub_cpu_halt_w) AM_RANGE(0xf850, 0xf850) AM_READ_PORT("DSW2") AM_WRITENOP /* ?? writes 0x00 or 0xff */ - AM_RANGE(0xf860, 0xf860) AM_READ(watchdog_reset_r) AM_WRITE(flipscreen_x_w) + AM_RANGE(0xf860, 0xf860) AM_DEVREAD("watchdog", watchdog_timer_device, reset_r) AM_WRITE(flipscreen_x_w) AM_RANGE(0xf870, 0xf870) AM_READ_PORT("DSW3") AM_WRITE(flipscreen_y_w) ADDRESS_MAP_END @@ -262,7 +263,7 @@ static ADDRESS_MAP_START( sub_mem, AS_PROGRAM, 8, tehkanwc_state ) AM_RANGE(0xe800, 0xebff) AM_RAM AM_SHARE("spriteram") /* sprites */ AM_RANGE(0xec00, 0xec01) AM_RAM_WRITE(scroll_x_w) AM_RANGE(0xec02, 0xec02) AM_RAM_WRITE(scroll_y_w) - AM_RANGE(0xf860, 0xf860) AM_READ(watchdog_reset_r) + AM_RANGE(0xf860, 0xf860) AM_DEVREAD("watchdog", watchdog_timer_device, reset_r) ADDRESS_MAP_END static ADDRESS_MAP_START( sound_mem, AS_PROGRAM, 8, tehkanwc_state ) @@ -642,6 +643,8 @@ static MACHINE_CONFIG_START( tehkanwc, tehkanwc_state ) MCFG_QUANTUM_TIME(attotime::from_hz(600)) /* 10 CPU slices per frame - seems enough to keep the CPUs in sync */ + MCFG_WATCHDOG_ADD("watchdog") + /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(60) |