diff options
Diffstat (limited to 'src/mame/drivers/spc1000.cpp')
-rw-r--r-- | src/mame/drivers/spc1000.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/spc1000.cpp b/src/mame/drivers/spc1000.cpp index 6fbcdd16f7e..51d1c928844 100644 --- a/src/mame/drivers/spc1000.cpp +++ b/src/mame/drivers/spc1000.cpp @@ -484,10 +484,10 @@ MACHINE_CONFIG_START(spc1000_state::spc1000) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(4'000'000) / 1) - MCFG_AY8910_PORT_A_READ_CB(READ8(*this, spc1000_state, porta_r)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8("cent_data_out", output_latch_device, bus_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) + ay8910_device &ay8910(AY8910(config, "ay8910", XTAL(4'000'000) / 1)); + ay8910.port_a_read_callback().set(FUNC(spc1000_state::porta_r)); + ay8910.port_b_write_callback().set("cent_data_out", FUNC(output_latch_device::bus_w)); + ay8910.add_route(ALL_OUTPUTS, "mono", 1.00); WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.05); MCFG_DEVICE_ADD("ext1", SPC1000_EXP_SLOT, 0) |