summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cchasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cchasm.cpp')
-rw-r--r--src/mame/drivers/cchasm.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/cchasm.cpp b/src/mame/drivers/cchasm.cpp
index 0b407e256ca..4d26b868371 100644
--- a/src/mame/drivers/cchasm.cpp
+++ b/src/mame/drivers/cchasm.cpp
@@ -17,7 +17,6 @@
#include "emu.h"
#include "includes/cchasm.h"
-#include "cpu/z80/z80.h"
#include "machine/z80daisy.h"
#include "cpu/m68000/m68000.h"
#include "machine/6840ptm.h"
@@ -153,10 +152,10 @@ MACHINE_CONFIG_START(cchasm_state::cchasm)
MCFG_DEVICE_ADD("maincpu", M68000, CCHASM_68K_CLOCK) /* 8 MHz (from schematics) */
MCFG_DEVICE_PROGRAM_MAP(memmap)
- MCFG_DEVICE_ADD("audiocpu", Z80, 3584229) /* 3.58 MHz (from schematics) */
- MCFG_Z80_DAISY_CHAIN(daisy_chain)
- MCFG_DEVICE_PROGRAM_MAP(sound_memmap)
- MCFG_DEVICE_IO_MAP(sound_portmap)
+ Z80(config, m_audiocpu, 3584229); /* 3.58 MHz (from schematics) */
+ m_audiocpu->set_daisy_config(daisy_chain);
+ m_audiocpu->set_addrmap(AS_PROGRAM, &cchasm_state::sound_memmap);
+ m_audiocpu->set_addrmap(AS_IO, &cchasm_state::sound_portmap);
MCFG_DEVICE_ADD("ctc", Z80CTC, 3584229 /* same as "audiocpu" */)
MCFG_Z80CTC_INTR_CB(INPUTLINE("audiocpu", INPUT_LINE_IRQ0))