From 7c3e992597d173c7e49f6695ca685cef49f31382 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 13 Apr 2023 23:25:02 +0200 Subject: msx easi-speech: don't derive clock from system clock --- src/devices/bus/msx/cart/easi_speech.cpp | 2 +- src/mame/namco/namco06.cpp | 5 +---- src/mame/namco/namco06.h | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/devices/bus/msx/cart/easi_speech.cpp b/src/devices/bus/msx/cart/easi_speech.cpp index 127b1c77708..1faf57538e7 100644 --- a/src/devices/bus/msx/cart/easi_speech.cpp +++ b/src/devices/bus/msx/cart/easi_speech.cpp @@ -41,7 +41,7 @@ const tiny_rom_entry *msx_cart_easispeech_device::device_rom_region() const void msx_cart_easispeech_device::device_add_mconfig(machine_config &config) { - SP0256(config, m_speech, DERIVED_CLOCK(1, 1)); // frequency unknown, assuming the system clock is used. + SP0256(config, m_speech, 3120000); // frequency unknown (R/C osc) if (parent_slot()) m_speech->add_route(ALL_OUTPUTS, soundin(), 1.0); } diff --git a/src/mame/namco/namco06.cpp b/src/mame/namco/namco06.cpp index 414f6f00843..c4435f040f8 100644 --- a/src/mame/namco/namco06.cpp +++ b/src/mame/namco/namco06.cpp @@ -114,10 +114,8 @@ TIMER_CALLBACK_MEMBER( namco_06xx_device::nmi_generate ) m_rw[3](0, BIT(m_control, 4)); } - // During reads, the first NMI pulse is supressed to give the chip a + // During reads, the first NMI pulse is suppressed to give the chip a // cycle to write. - - if (m_timer_state && !m_read_stretch) { set_nmi(ASSERT_LINE); @@ -214,7 +212,6 @@ TIMER_CALLBACK_MEMBER( namco_06xx_device::ctrl_w_sync ) m_read_stretch = false; } - uint8_t num_shifts = (m_control & 0xe0) >> 5; uint8_t divisor = 1 << num_shifts; attotime period = attotime::from_hz(clock() / divisor) / 2; diff --git a/src/mame/namco/namco06.h b/src/mame/namco/namco06.h index ca5bc456925..d3e50d7c598 100644 --- a/src/mame/namco/namco06.h +++ b/src/mame/namco/namco06.h @@ -6,7 +6,6 @@ #pragma once -/* device get info callback */ class namco_06xx_device : public device_t { public: @@ -37,7 +36,7 @@ private: TIMER_CALLBACK_MEMBER( ctrl_w_sync ); // internal state - emu_timer *m_nmi_timer = nullptr; + emu_timer *m_nmi_timer; uint8_t m_control; bool m_timer_state; bool m_read_stretch; -- cgit v1.2.3