summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bking.cpp')
-rw-r--r--src/mame/drivers/bking.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/drivers/bking.cpp b/src/mame/drivers/bking.cpp
index 6d25f92bba9..e6085af308e 100644
--- a/src/mame/drivers/bking.cpp
+++ b/src/mame/drivers/bking.cpp
@@ -20,6 +20,7 @@ DIP Locations verified for:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "cpu/m6805/m6805.h"
+#include "machine/watchdog.h"
#include "sound/ay8910.h"
#include "sound/dac.h"
#include "includes/bking.h"
@@ -91,7 +92,7 @@ static ADDRESS_MAP_START( bking_io_map, AS_IO, 8, bking_state )
AM_RANGE(0x04, 0x04) AM_READ_PORT("DSWC") AM_WRITE(bking_xld3_w)
AM_RANGE(0x05, 0x05) AM_READWRITE(bking_input_port_5_r, bking_yld3_w)
AM_RANGE(0x06, 0x06) AM_READWRITE(bking_input_port_6_r, bking_msk_w)
- AM_RANGE(0x07, 0x07) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x07, 0x07) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x08, 0x08) AM_WRITE(bking_cont1_w)
AM_RANGE(0x09, 0x09) AM_WRITE(bking_cont2_w)
AM_RANGE(0x0a, 0x0a) AM_WRITE(bking_cont3_w)
@@ -110,7 +111,7 @@ static ADDRESS_MAP_START( bking3_io_map, AS_IO, 8, bking_state )
AM_RANGE(0x04, 0x04) AM_READ_PORT("DSWC") AM_WRITE(bking_xld3_w)
AM_RANGE(0x05, 0x05) AM_READWRITE(bking_input_port_5_r, bking_yld3_w)
AM_RANGE(0x06, 0x06) AM_READWRITE(bking_input_port_6_r, bking_msk_w)
- AM_RANGE(0x07, 0x07) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x07, 0x07) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x08, 0x08) AM_WRITE(bking_cont1_w)
AM_RANGE(0x09, 0x09) AM_WRITE(bking_cont2_w)
AM_RANGE(0x0a, 0x0a) AM_WRITE(bking_cont3_w)
@@ -463,6 +464,8 @@ static MACHINE_CONFIG_START( bking, bking_state )
/* - periodic IRQ, with frequency 6000000/(4*16*16*10*16) = 36.621 Hz, */
MCFG_CPU_PERIODIC_INT_DRIVER(bking_state, irq0_line_hold, (double)6000000/(4*16*16*10*16))
+ MCFG_WATCHDOG_ADD("watchdog")
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)