summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/stfight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/stfight.cpp')
-rw-r--r--src/mame/drivers/stfight.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/stfight.cpp b/src/mame/drivers/stfight.cpp
index 974ddace357..00d40f05a77 100644
--- a/src/mame/drivers/stfight.cpp
+++ b/src/mame/drivers/stfight.cpp
@@ -323,8 +323,8 @@ void stfight_state::cshooter_cpu1_map(address_map &map)
void stfight_state::cpu2_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
- map(0xc000, 0xc001).rw("ym1", FUNC(ym2203_device::read), FUNC(ym2203_device::write));
- map(0xc800, 0xc801).rw("ym2", FUNC(ym2203_device::read), FUNC(ym2203_device::write));
+ map(0xc000, 0xc001).rw(m_ym[0], FUNC(ym2203_device::read), FUNC(ym2203_device::write));
+ map(0xc800, 0xc801).rw(m_ym[1], FUNC(ym2203_device::read), FUNC(ym2203_device::write));
map(0xd000, 0xd000).nopr();
map(0xd800, 0xd800).nopw();
map(0xe800, 0xe800).nopw();
@@ -482,17 +482,17 @@ void stfight_state::stfight_base(machine_config &config)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- ym2203_device &ym1(YM2203(config, m_ym1, 12_MHz_XTAL / 8));
- ym1.add_route(0, "mono", 0.15);
- ym1.add_route(1, "mono", 0.15);
- ym1.add_route(2, "mono", 0.15);
- ym1.add_route(3, "mono", 0.10);
-
- ym2203_device &ym2(YM2203(config, m_ym2, 12_MHz_XTAL / 8));
- ym2.add_route(0, "mono", 0.15);
- ym2.add_route(1, "mono", 0.15);
- ym2.add_route(2, "mono", 0.15);
- ym2.add_route(3, "mono", 0.10);
+ YM2203(config, m_ym[0], 12_MHz_XTAL / 8);
+ m_ym[0]->add_route(0, "mono", 0.15);
+ m_ym[0]->add_route(1, "mono", 0.15);
+ m_ym[0]->add_route(2, "mono", 0.15);
+ m_ym[0]->add_route(3, "mono", 0.10);
+
+ YM2203(config, m_ym[1], 12_MHz_XTAL / 8);
+ m_ym[1]->add_route(0, "mono", 0.15);
+ m_ym[1]->add_route(1, "mono", 0.15);
+ m_ym[1]->add_route(2, "mono", 0.15);
+ m_ym[1]->add_route(3, "mono", 0.10);
MSM5205(config, m_msm, 384_kHz_XTAL);
m_msm->vck_callback().set(FUNC(stfight_state::stfight_adpcm_int)); // Interrupt function