summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/qs1000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/qs1000.cpp')
-rw-r--r--src/devices/sound/qs1000.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/devices/sound/qs1000.cpp b/src/devices/sound/qs1000.cpp
index 344a3b4d1ef..64d64bef64a 100644
--- a/src/devices/sound/qs1000.cpp
+++ b/src/devices/sound/qs1000.cpp
@@ -151,15 +151,6 @@ static ADDRESS_MAP_START( qs1000_io_map, AS_IO, 8, qs1000_device )
ADDRESS_MAP_END
-// Machine fragment
-static MACHINE_CONFIG_START( qs1000 )
- MCFG_CPU_ADD("cpu", I8052, DERIVED_CLOCK(1, 1))
- MCFG_CPU_PROGRAM_MAP(qs1000_prg_map)
- MCFG_CPU_IO_MAP(qs1000_io_map)
- MCFG_MCS51_SERIAL_RX_CB(READ8(qs1000_device, data_to_i8052))
-MACHINE_CONFIG_END
-
-
// ROM definition for the QS1000 internal program ROM
ROM_START( qs1000 )
ROM_REGION( 0x10000, "cpu", 0 )
@@ -203,13 +194,14 @@ const tiny_rom_entry *qs1000_device::device_rom_region() const
//-------------------------------------------------
-// machine_config_additions - return a pointer to
-// the device's machine fragment
+// device_add_mconfig - add machine configuration
//-------------------------------------------------
-machine_config_constructor qs1000_device::device_mconfig_additions() const
-{
- return MACHINE_CONFIG_NAME( qs1000 );
-}
+MACHINE_CONFIG_MEMBER( qs1000_device::device_add_mconfig )
+ MCFG_CPU_ADD("cpu", I8052, DERIVED_CLOCK(1, 1))
+ MCFG_CPU_PROGRAM_MAP(qs1000_prg_map)
+ MCFG_CPU_IO_MAP(qs1000_io_map)
+ MCFG_MCS51_SERIAL_RX_CB(READ8(qs1000_device, data_to_i8052))
+MACHINE_CONFIG_END
//-------------------------------------------------