summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/c64/tdos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/c64/tdos.cpp')
-rw-r--r--src/devices/bus/c64/tdos.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/bus/c64/tdos.cpp b/src/devices/bus/c64/tdos.cpp
index 679905cf25d..a814ccc26a8 100644
--- a/src/devices/bus/c64/tdos.cpp
+++ b/src/devices/bus/c64/tdos.cpp
@@ -153,11 +153,13 @@ DEFINE_DEVICE_TYPE(C64_TDOS, c64_tdos_cartridge_device, "c64_tdos", "C64 TDOS ca
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(c64_tdos_cartridge_device::device_add_mconfig)
- MCFG_DEVICE_ADD(MC68A52P_TAG, MC6852, XTAL(6'500'000))
+void c64_tdos_cartridge_device::device_add_mconfig(machine_config &config)
+{
+ MC6852(config, m_ssda, XTAL(6'500'000));
- MCFG_C64_PASSTHRU_EXPANSION_SLOT_ADD()
-MACHINE_CONFIG_END
+ C64_EXPANSION_SLOT(config, m_exp, DERIVED_CLOCK(1, 1), c64_expansion_cards, nullptr);
+ m_exp->set_passthrough();
+}
//-------------------------------------------------
@@ -195,7 +197,7 @@ c64_tdos_cartridge_device::c64_tdos_cartridge_device(const machine_config &mconf
device_t(mconfig, C64_TDOS, tag, owner, clock),
device_c64_expansion_card_interface(mconfig, *this),
m_ssda(*this, MC68A52P_TAG),
- m_exp(*this, C64_EXPANSION_SLOT_TAG),
+ m_exp(*this, "exp"),
m_sw1(*this, "SW1"), m_enabled(false)
{
}