summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mc1000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mc1000.cpp')
-rw-r--r--src/mame/drivers/mc1000.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/mc1000.cpp b/src/mame/drivers/mc1000.cpp
index 54c5fa1ac20..c90308fdf4d 100644
--- a/src/mame/drivers/mc1000.cpp
+++ b/src/mame/drivers/mc1000.cpp
@@ -567,12 +567,12 @@ MACHINE_CONFIG_START(mc1000_state::mc1000)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD(AY8910_TAG, AY8910, 3579545/2)
- MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT)
- MCFG_AY8910_RES_LOADS(RES_K(2.2), 0, 0)
- MCFG_AY8910_PORT_B_READ_CB(READ8(*this, mc1000_state, keydata_r))
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, mc1000_state, keylatch_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
+ ay8910_device &ay8910(AY8910(config, AY8910_TAG, 3579545/2));
+ ay8910.set_flags(AY8910_SINGLE_OUTPUT);
+ ay8910.set_resistors_load(RES_K(2.2), 0, 0);
+ ay8910.port_b_read_callback().set(FUNC(mc1000_state::keydata_r));
+ ay8910.port_a_write_callback().set(FUNC(mc1000_state::keylatch_w));
+ ay8910.add_route(ALL_OUTPUTS, "mono", 0.25);
/* devices */
MCFG_CASSETTE_ADD("cassette")