From 02a916957ff551f411dfc2d6aa971ff8db3d8c0c Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 14 Jun 2019 19:51:20 +0200 Subject: tms7000: apply tim's fix for timer divider (nw) --- src/devices/cpu/tms7000/tms7000.cpp | 2 +- src/mame/drivers/cc40.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/devices/cpu/tms7000/tms7000.cpp b/src/devices/cpu/tms7000/tms7000.cpp index 2034f31756a..11014f63994 100644 --- a/src/devices/cpu/tms7000/tms7000.cpp +++ b/src/devices/cpu/tms7000/tms7000.cpp @@ -438,7 +438,7 @@ void tms7000_device::timer_run(int tmr) // run automatic timer if source is internal if ((m_timer_control[tmr] & 0xe0) == 0x80) { - attotime period = attotime::from_hz(clock()) * 8 * (m_timer_prescaler[tmr] + 1); // fOSC/16 - fOSC is freq _before_ internal clockdivider + attotime period = attotime::from_hz(clock()) * 16 * (m_timer_prescaler[tmr] + 1); // fOSC/16 - fOSC is freq _before_ internal clockdivider m_timer_handle[tmr]->adjust(period, tmr); } } diff --git a/src/mame/drivers/cc40.cpp b/src/mame/drivers/cc40.cpp index e333a96ba3a..a8c4f440bb4 100644 --- a/src/mame/drivers/cc40.cpp +++ b/src/mame/drivers/cc40.cpp @@ -615,9 +615,8 @@ MACHINE_CONFIG_START(cc40_state::cc40) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); + DAC_1BIT(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.25); + VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); /* cartridge */ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "cc40_cart") -- cgit v1.2.3