From b63c459902a1f9b4a690a8ac21db5dc08cb516d1 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 26 Jan 2018 18:24:34 +1100 Subject: [PATCH] that's a time, not a crystal, and I'm not doing eight overloads (nw) --- src/mame/audio/exidy.cpp | 4 ++-- src/mame/drivers/cmi.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp index a35b169ec45..ad8f4470ef2 100644 --- a/src/mame/audio/exidy.cpp +++ b/src/mame/audio/exidy.cpp @@ -687,7 +687,7 @@ void venture_sound_device::device_start() m_cvsd = machine().device("cvsd"); /* 8253 */ - m_freq_to_step = ((1 << 24) / SH8253_CLOCK).dvalue(); + m_freq_to_step = (1 << 24) / SH8253_CLOCK; save_item(NAME(m_riot_irq_state)); sh8253_register_state_globals(); @@ -937,7 +937,7 @@ void victory_sound_device::device_start() m_cvsd = machine().device("cvsd"); /* 8253 */ - m_freq_to_step = ((1 << 24) / SH8253_CLOCK).dvalue(); + m_freq_to_step = (1 << 24) / SH8253_CLOCK; save_item(NAME(m_riot_irq_state)); sh8253_register_state_globals(); diff --git a/src/mame/drivers/cmi.cpp b/src/mame/drivers/cmi.cpp index 1469cd70a0c..675ad420f95 100644 --- a/src/mame/drivers/cmi.cpp +++ b/src/mame/drivers/cmi.cpp @@ -2809,7 +2809,7 @@ MACHINE_CONFIG_START(cmi_state::cmi2x) MCFG_PIA_IRQB_HANDLER(WRITELINE(cmi_state, pia_q219_irqb)) MCFG_DEVICE_ADD("q219_ptm", PTM6840, 2000000) // ptm_q219_config - MCFG_PTM6840_EXTERNAL_CLOCKS(HBLANK_FREQ, VBLANK_FREQ, 1000000) + MCFG_PTM6840_EXTERNAL_CLOCKS(HBLANK_FREQ.dvalue(), VBLANK_FREQ.dvalue(), 1'000'000) // TODO: does the third thing come from a crystal? MCFG_PTM6840_IRQ_CB(WRITELINE(cmi_state, ptm_q219_irq)) MCFG_DEVICE_ADD("cmi02_pia_1", PIA6821, 0) // pia_cmi02_1_config