summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/einstein.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-11-14 18:56:50 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2018-11-14 18:56:50 +0100
commitcc59e2123eaa5e6c5c71317d28b55f425bb6a333 (patch)
tree5dc5670b8695c59255c663d08d557dd3ea2bffcc /src/mame/drivers/einstein.cpp
parent9605e76c1ce1b76e1d344d5531fb823d1cd5ef9a (diff)
ay8910: finished MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/einstein.cpp')
-rw-r--r--src/mame/drivers/einstein.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp
index 8ab0ba8b198..0a8cd815e1b 100644
--- a/src/mame/drivers/einstein.cpp
+++ b/src/mame/drivers/einstein.cpp
@@ -619,10 +619,10 @@ MACHINE_CONFIG_START(einstein_state::einstein)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD(IC_I030, AY8910, XTAL_X002 / 4)
- MCFG_AY8910_PORT_B_READ_CB(READ8(*this, einstein_state, keyboard_data_read))
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, einstein_state, keyboard_line_write))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
+ AY8910(config, m_psg, XTAL_X002 / 4);
+ m_psg->port_b_read_callback().set(FUNC(einstein_state::keyboard_data_read));
+ m_psg->port_a_write_callback().set(FUNC(einstein_state::keyboard_line_write));
+ m_psg->add_route(ALL_OUTPUTS, "mono", 0.20);
adc0844_device &adc(ADC0844(config, "adc", 0));
adc.intr_callback().set(m_adc_daisy, FUNC(z80daisy_generic_device::int_w));