summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/cxgz80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cxgz80.cpp')
-rw-r--r--src/mame/drivers/cxgz80.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/cxgz80.cpp b/src/mame/drivers/cxgz80.cpp
index c4865d8b3c8..9c587a1f3a7 100644
--- a/src/mame/drivers/cxgz80.cpp
+++ b/src/mame/drivers/cxgz80.cpp
@@ -398,8 +398,8 @@ INPUT_PORTS_END
MACHINE_CONFIG_START(cxgz80_state::ch2001)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, 8_MHz_XTAL/2)
- MCFG_CPU_PROGRAM_MAP(ch2001_map)
+ MCFG_DEVICE_ADD("maincpu", Z80, 8_MHz_XTAL/2)
+ MCFG_DEVICE_PROGRAM_MAP(ch2001_map)
MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_on", cxgz80_state, irq_on, attotime::from_hz(484)) // theoretical frequency from 555 timer (22nF, 100K+33K, 1K2), measurement was 568Hz
MCFG_TIMER_START_DELAY(attotime::from_hz(484) - attotime::from_nsec(18300)) // active for 18.3us
MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_off", cxgz80_state, irq_off, attotime::from_hz(484))
@@ -411,7 +411,7 @@ MACHINE_CONFIG_START(cxgz80_state::ch2001)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("speaker")
- MCFG_SOUND_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
+ MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT)
MACHINE_CONFIG_END