summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-02-19 21:47:57 +0100
committer hap <happppp@users.noreply.github.com>2025-02-19 21:48:09 +0100
commitbf9df04e005697788ae988ef5aea91a1878fd631 (patch)
tree21f2f40359b6330634052560b552eeb596f2dacc
parent085a086349a69ae2301bb82d33f7cdb908a26f65 (diff)
megadriv: hook up z80 busrq pin
-rw-r--r--src/mame/sega/megadriv.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mame/sega/megadriv.cpp b/src/mame/sega/megadriv.cpp
index 4f12b40f6db..226e890ba8e 100644
--- a/src/mame/sega/megadriv.cpp
+++ b/src/mame/sega/megadriv.cpp
@@ -441,21 +441,17 @@ uint16_t md_base_state::megadriv_68k_check_z80_bus(offs_t offset, uint16_t mem_m
TIMER_CALLBACK_MEMBER(md_base_state::megadriv_z80_run_state)
{
/* Is the z80 RESET line pulled? */
- // TODO: Z80 /RESET
if (m_genz80.z80_is_reset)
{
- m_z80snd->reset();
- m_z80snd->suspend(SUSPEND_REASON_HALT, 1);
+ m_z80snd->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
m_ymsnd->reset();
}
else
{
+ m_z80snd->set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
+
/* Check if z80 has the bus */
- // TODO: Z80 /BUSREQ
- if (m_genz80.z80_has_bus)
- m_z80snd->resume(SUSPEND_REASON_HALT);
- else
- m_z80snd->suspend(SUSPEND_REASON_HALT, 1);
+ m_z80snd->set_input_line(Z80_INPUT_LINE_BUSRQ, m_genz80.z80_has_bus ? CLEAR_LINE : ASSERT_LINE);
}
}