summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar hap <happppp@users.noreply.github.com>2019-06-14 19:51:20 +0200
committerGravatarGravatar hap <happppp@users.noreply.github.com>2019-06-14 19:51:20 +0200
commit02a916957ff551f411dfc2d6aa971ff8db3d8c0c (patch) (github)
tree9e9f44413fc3bbd9726409ac70b3db96d51af6d1
parent651c467df4d03259a2c22217bb5671574eb5469b (diff)
downloadmame-02a916957ff551f411dfc2d6aa971ff8db3d8c0c.tar.bz2
mame-02a916957ff551f411dfc2d6aa971ff8db3d8c0c.zip
tms7000: apply tim's fix for timer divider (nw)
-rw-r--r--src/devices/cpu/tms7000/tms7000.cpp2
-rw-r--r--src/mame/drivers/cc40.cpp5
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")