mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
msx easi-speech: don't derive clock from system clock
This commit is contained in:
parent
be377e8c2a
commit
7c3e992597
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user