summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lastbank.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lastbank.cpp')
-rw-r--r--src/mame/drivers/lastbank.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/lastbank.cpp b/src/mame/drivers/lastbank.cpp
index 45f3ca7b410..1942d977b20 100644
--- a/src/mame/drivers/lastbank.cpp
+++ b/src/mame/drivers/lastbank.cpp
@@ -558,14 +558,14 @@ MACHINE_CONFIG_START(lastbank_state::lastbank)
MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
- MCFG_ES8712_ADD("essnd", 0)
- MCFG_ES8712_MSM_WRITE_CALLBACK(WRITE8("msm", msm6585_device, data_w))
- MCFG_ES8712_MSM_TAG("msm")
-
- MCFG_DEVICE_ADD("msm", MSM6585, 640_kHz_XTAL) /* Not verified, It's actually MSM6585? */
- MCFG_MSM6585_VCK_CALLBACK(WRITELINE("essnd", es8712_device, msm_int))
- MCFG_MSM6585_PRESCALER_SELECTOR(S40) /* Not verified */
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+ ES8712(config, m_essnd, 0);
+ m_essnd->msm_write_handler().set("msm", FUNC(msm6585_device::data_w));
+ m_essnd->set_msm_tag("msm");
+
+ msm6585_device &msm(MSM6585(config, "msm", 640_kHz_XTAL)); /* Not verified, It's actually MSM6585? */
+ msm.vck_legacy_callback().set("essnd", FUNC(es8712_device::msm_int));
+ msm.set_prescaler_selector(msm6585_device::S40); /* Not verified */
+ msm.add_route(ALL_OUTPUTS, "mono", 0.50);
// A RTC-62421 is present on the Last Bank PCB. However, the code
// that tries to read from it is broken and nonfunctional. The RTC