From 24058aa613f2bc3796438df7624908f67a3267c4 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 7 Jul 2023 20:50:50 +0200 Subject: [PATCH] system1: set most ppi tristate to 0 --- src/devices/sound/k051649.cpp | 1 + src/mame/sega/system1.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/devices/sound/k051649.cpp b/src/devices/sound/k051649.cpp index b4fda78732e..18d38ba7cca 100644 --- a/src/devices/sound/k051649.cpp +++ b/src/devices/sound/k051649.cpp @@ -76,6 +76,7 @@ void k051649_device::device_start() save_item(STRUCT_MEMBER(m_channel_list, clock)); save_item(STRUCT_MEMBER(m_channel_list, frequency)); save_item(STRUCT_MEMBER(m_channel_list, volume)); + save_item(STRUCT_MEMBER(m_channel_list, sample)); save_item(STRUCT_MEMBER(m_channel_list, key)); save_item(STRUCT_MEMBER(m_channel_list, waveram)); save_item(NAME(m_test)); diff --git a/src/mame/sega/system1.cpp b/src/mame/sega/system1.cpp index 96dcde2e6c6..5c462e4fa48 100644 --- a/src/mame/sega/system1.cpp +++ b/src/mame/sega/system1.cpp @@ -2292,6 +2292,9 @@ void system1_state::sys1ppi(machine_config &config) m_ppi8255->out_pa_callback().set(FUNC(system1_state::soundport_w)); m_ppi8255->out_pb_callback().set(FUNC(system1_state::videomode_w)); m_ppi8255->out_pc_callback().set(FUNC(system1_state::sound_control_w)); + m_ppi8255->tri_pa_callback().set_constant(0x00); + m_ppi8255->tri_pb_callback().set_constant(0x40); + m_ppi8255->tri_pc_callback().set_constant(0x80); /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER);