summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/exterm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/exterm.cpp')
-rw-r--r--src/mame/drivers/exterm.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mame/drivers/exterm.cpp b/src/mame/drivers/exterm.cpp
index 587a1504c37..8adb0b29721 100644
--- a/src/mame/drivers/exterm.cpp
+++ b/src/mame/drivers/exterm.cpp
@@ -391,17 +391,11 @@ MACHINE_CONFIG_START(exterm_state::exterm)
MCFG_TMS340X0_TO_SHIFTREG_CB(exterm_state, to_shiftreg_slave)
MCFG_TMS340X0_FROM_SHIFTREG_CB(exterm_state, from_shiftreg_slave)
- MCFG_DEVICE_ADD(m_audiocpu, M6502, 2000000)
- MCFG_DEVICE_PROGRAM_MAP(sound_master_map)
+ M6502(config, m_audiocpu, 2000000).set_addrmap(AS_PROGRAM, &exterm_state::sound_master_map);
+ M6502(config, m_audioslave, 2000000).set_addrmap(AS_PROGRAM, &exterm_state::sound_slave_map);
- MCFG_DEVICE_ADD(m_audioslave, M6502, 2000000)
- MCFG_DEVICE_PROGRAM_MAP(sound_slave_map)
-
- MCFG_GENERIC_LATCH_8_ADD(m_soundlatch[0])
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE(m_audiocpu, M6502_IRQ_LINE))
-
- MCFG_GENERIC_LATCH_8_ADD(m_soundlatch[1])
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE(m_audioslave, M6502_IRQ_LINE))
+ GENERIC_LATCH_8(config, m_soundlatch[0]).data_pending_callback().set_inputline(m_audiocpu, M6502_IRQ_LINE);
+ GENERIC_LATCH_8(config, m_soundlatch[1]).data_pending_callback().set_inputline(m_audioslave, M6502_IRQ_LINE);
MCFG_QUANTUM_TIME(attotime::from_hz(6000))