summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/supstarf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/supstarf.cpp')
-rw-r--r--src/mame/drivers/supstarf.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/supstarf.cpp b/src/mame/drivers/supstarf.cpp
index 98477550199..6c6f0cbd1b4 100644
--- a/src/mame/drivers/supstarf.cpp
+++ b/src/mame/drivers/supstarf.cpp
@@ -49,7 +49,7 @@ private:
virtual void machine_start() override;
required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
+ required_device<i8035_device> m_soundcpu;
required_device_array<ay8910_device, 2> m_psg;
required_device_array<i8212_device, 2> m_soundlatch;
@@ -180,12 +180,12 @@ MACHINE_CONFIG_START(supstarf_state::supstarf)
MCFG_I8085A_SID(READLINE(*this, supstarf_state, contacts_r))
MCFG_I8085A_SOD(WRITELINE(*this, supstarf_state, displays_w))
- MCFG_DEVICE_ADD("soundcpu", I8035, XTAL(5'068'800) / 2) // from 8085 pin 37 (CLK OUT)
- MCFG_DEVICE_PROGRAM_MAP(sound_map)
- MCFG_DEVICE_IO_MAP(sound_io_map)
- MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, supstarf_state, port1_w))
- MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, supstarf_state, port2_w))
- MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, supstarf_state, phase_detect_r))
+ I8035(config, m_soundcpu, XTAL(5'068'800) / 2); // from 8085 pin 37 (CLK OUT)
+ m_soundcpu->set_addrmap(AS_PROGRAM, &supstarf_state::sound_map);
+ m_soundcpu->set_addrmap(AS_IO, &supstarf_state::sound_io_map);
+ m_soundcpu->p1_out_cb().set(FUNC(supstarf_state::port1_w));
+ m_soundcpu->p2_out_cb().set(FUNC(supstarf_state::port2_w));
+ m_soundcpu->t1_in_cb().set(FUNC(supstarf_state::phase_detect_r));
I8212(config, m_soundlatch[0], 0);
m_soundlatch[0]->md_rd_callback().set_constant(0);