summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-04-13 11:36:17 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-04-13 11:36:17 -0400
commit8a4a4987c6b3621bebbce06483ef3dad804877c6 (patch)
treeef427926798323aaf90f0340fd97012728986a42
parente8d627ceb80674ee07da2f099ceb7d2f5f8dbd21 (diff)
segaxbd.cpp: Watchdog type is MB3773 (nw)
-rw-r--r--src/mame/drivers/segaxbd.cpp7
-rw-r--r--src/mame/includes/segaxbd.h4
2 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/drivers/segaxbd.cpp b/src/mame/drivers/segaxbd.cpp
index 109ff855c71..94bc8760583 100644
--- a/src/mame/drivers/segaxbd.cpp
+++ b/src/mame/drivers/segaxbd.cpp
@@ -499,8 +499,6 @@ WRITE16_MEMBER( segaxbd_state::adc_w )
WRITE8_MEMBER(segaxbd_state::pc_0_w)
{
- // swap in the new value and remember the previous value
- uint8_t oldval = m_pc_0;
m_pc_0 = data;
// Output port:
@@ -510,8 +508,7 @@ WRITE8_MEMBER(segaxbd_state::pc_0_w)
// D4-D2: (ADC2-0)
// D1: (CONT) - affects sprite hardware
// D0: Sound section reset (1= normal operation, 0= reset)
- if (((oldval ^ data) & 0x40) && !(data & 0x40))
- m_watchdog->watchdog_reset();
+ m_watchdog->write_line_ck(BIT(data, 6));
m_segaic16vid->set_display_enable(data & 0x20);
@@ -1689,7 +1686,7 @@ static MACHINE_CONFIG_FRAGMENT( xboard )
MCFG_NVRAM_ADD_0FILL("backup2")
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
- MCFG_WATCHDOG_ADD("watchdog")
+ MCFG_MB3773_ADD("watchdog")
MCFG_SEGA_315_5248_MULTIPLIER_ADD("multiplier_main")
MCFG_SEGA_315_5248_MULTIPLIER_ADD("multiplier_subx")
diff --git a/src/mame/includes/segaxbd.h b/src/mame/includes/segaxbd.h
index 167cc2df7d1..acfe42a5f3d 100644
--- a/src/mame/includes/segaxbd.h
+++ b/src/mame/includes/segaxbd.h
@@ -10,7 +10,7 @@
#include "cpu/mcs51/mcs51.h"
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
+#include "machine/mb3773.h"
#include "machine/segaic16.h"
#include "video/segaic16.h"
#include "video/segaic16_road.h"
@@ -95,7 +95,7 @@ protected:
required_device<z80_device> m_soundcpu;
optional_device<z80_device> m_soundcpu2;
optional_device<i8751_device> m_mcu;
- required_device<watchdog_timer_device> m_watchdog;
+ required_device<mb3773_device> m_watchdog;
required_device<sega_315_5250_compare_timer_device> m_cmptimer_1;
required_device<sega_xboard_sprite_device> m_sprites;
required_device<segaic16_video_device> m_segaic16vid;