summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pet/c2n.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pet/c2n.cpp')
-rw-r--r--src/devices/bus/pet/c2n.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/bus/pet/c2n.cpp b/src/devices/bus/pet/c2n.cpp
index e7ac6e27c28..1212f46c3ca 100644
--- a/src/devices/bus/pet/c2n.cpp
+++ b/src/devices/bus/pet/c2n.cpp
@@ -24,13 +24,12 @@ DEFINE_DEVICE_TYPE(C1531, c1531_device, "c1531", "Commodore 1531 Datassette")
// device_add_mconfig - add device configuration
//-------------------------------------------------
-void c2n_device::device_add_mconfig(machine_config &config)
-{
- CASSETTE(config, m_cassette);
- m_cassette->set_formats(cbm_cassette_formats);
- m_cassette->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED);
- m_cassette->set_interface("cbm_cass");
-}
+MACHINE_CONFIG_START(c2n_device::device_add_mconfig)
+ MCFG_CASSETTE_ADD("cassette" )
+ MCFG_CASSETTE_FORMATS(cbm_cassette_formats)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
+ MCFG_CASSETTE_INTERFACE("cbm_cass")
+MACHINE_CONFIG_END