From 692d1f70699cbb65ab423631faed3e1c78c47dcb Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 24 Aug 2024 19:09:13 +0200 Subject: s14001a: level triggered 1-bit handler does not make sense, sg1000a: small note update --- src/devices/sound/s14001a.cpp | 4 ++-- src/mame/sega/sg1000a.cpp | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/devices/sound/s14001a.cpp b/src/devices/sound/s14001a.cpp index 0c54622e46d..a27ae2210da 100644 --- a/src/devices/sound/s14001a.cpp +++ b/src/devices/sound/s14001a.cpp @@ -333,9 +333,9 @@ void s14001a_device::data_w(u8 data) void s14001a_device::start_w(int state) { m_stream->update(); - m_bStart = (state != 0); - if (m_bStart) + if (state && !m_bStart) m_uStateP1 = states::WORDWAIT; + m_bStart = (state != 0); } void s14001a_device::set_clock(u32 clock) diff --git a/src/mame/sega/sg1000a.cpp b/src/mame/sega/sg1000a.cpp index 9f98d03f096..17bd6185a89 100644 --- a/src/mame/sega/sg1000a.cpp +++ b/src/mame/sega/sg1000a.cpp @@ -1,9 +1,9 @@ // license:BSD-3-Clause // copyright-holders:Tomasz Slanina /********************************************************* -Sega hardware based on their SG-1000 console -Driver by Tomasz Slanina +Sega arcade hardware based on their SG-1000 console +Driver by Tomasz Slanina Supported games : - Champion Boxing @@ -285,10 +285,11 @@ namespace { class sg1000a_state : public driver_device { public: - sg1000a_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + sg1000a_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), - m_decrypted_opcodes(*this, "decrypted_opcodes") { } + m_decrypted_opcodes(*this, "decrypted_opcodes") + { } void sderbys(machine_config &config); void sderby2s(machine_config &config); @@ -521,6 +522,7 @@ void sg1000a_state::sderbys(machine_config &config) sderby2s(config); m_maincpu->set_addrmap(AS_OPCODES, &sg1000a_state::decrypted_opcodes_map); } + /************************************* * * ROM definitions -- cgit v1.2.3