diff options
Diffstat (limited to 'src/devices/bus/a7800/xboard.cpp')
-rw-r--r-- | src/devices/bus/a7800/xboard.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/devices/bus/a7800/xboard.cpp b/src/devices/bus/a7800/xboard.cpp index 6a772f3210c..d2e610f666e 100644 --- a/src/devices/bus/a7800/xboard.cpp +++ b/src/devices/bus/a7800/xboard.cpp @@ -106,25 +106,27 @@ void a78_xm_device::device_reset() } -MACHINE_CONFIG_START(a78_xboard_device::device_add_mconfig) - MCFG_A78_CARTRIDGE_ADD("xb_slot", a7800_cart, nullptr) +void a78_xboard_device::device_add_mconfig(machine_config &config) +{ + A78_CART_SLOT(config, m_xbslot, a7800_cart, nullptr); SPEAKER(config, "xb_speaker").front_center(); - MCFG_DEVICE_ADD("xb_pokey", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "xb_speaker", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey, XTAL(14'318'181)/8); + m_pokey->add_route(ALL_OUTPUTS, "xb_speaker", 1.00); +} -MACHINE_CONFIG_START(a78_xm_device::device_add_mconfig) - MCFG_A78_CARTRIDGE_ADD("xb_slot", a7800_cart, nullptr) +void a78_xm_device::device_add_mconfig(machine_config &config) +{ + A78_CART_SLOT(config, m_xbslot, a7800_cart, nullptr); SPEAKER(config, "xb_speaker").front_center(); - MCFG_DEVICE_ADD("xb_pokey", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "xb_speaker", 1.00) + POKEY(config, m_pokey, XTAL(14'318'181)/8); + m_pokey->add_route(ALL_OUTPUTS, "xb_speaker", 1.00); YM2151(config, m_ym, XTAL(14'318'181)/4).add_route(ALL_OUTPUTS, "xb_speaker", 1.00); -MACHINE_CONFIG_END +} /*------------------------------------------------- |