summaryrefslogtreecommitdiffstats
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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/supstarf.cpp b/src/mame/drivers/supstarf.cpp
index c9384e1fbc0..15d74ddae24 100644
--- a/src/mame/drivers/supstarf.cpp
+++ b/src/mame/drivers/supstarf.cpp
@@ -173,18 +173,18 @@ void supstarf_state::machine_start()
}
MACHINE_CONFIG_START(supstarf_state::supstarf)
- MCFG_CPU_ADD("maincpu", I8085A, XTAL(5'068'800))
- MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_IO_MAP(main_io_map)
- MCFG_I8085A_SID(READLINE(supstarf_state, contacts_r))
- MCFG_I8085A_SOD(WRITELINE(supstarf_state, displays_w))
-
- MCFG_CPU_ADD("soundcpu", I8035, XTAL(5'068'800) / 2) // from 8085 pin 37 (CLK OUT)
- MCFG_CPU_PROGRAM_MAP(sound_map)
- MCFG_CPU_IO_MAP(sound_io_map)
- MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(supstarf_state, port1_w))
- MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(supstarf_state, port2_w))
- MCFG_MCS48_PORT_T1_IN_CB(READLINE(supstarf_state, phase_detect_r))
+ MCFG_DEVICE_ADD("maincpu", I8085A, XTAL(5'068'800))
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_DEVICE_IO_MAP(main_io_map)
+ 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))
MCFG_DEVICE_ADD("soundlatch1", I8212, 0)
MCFG_I8212_MD_CALLBACK(GND)
@@ -197,12 +197,12 @@ MACHINE_CONFIG_START(supstarf_state::supstarf)
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("psg1", AY8910, XTAL(5'068'800) / 6) // from 8035 pin 1 (T0)
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(supstarf_state, lights_a_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(supstarf_state, lights_b_w))
+ MCFG_DEVICE_ADD("psg1", AY8910, XTAL(5'068'800) / 6) // from 8035 pin 1 (T0)
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, supstarf_state, lights_a_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, supstarf_state, lights_b_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
- MCFG_SOUND_ADD("psg2", AY8910, XTAL(5'068'800) / 6) // from 8035 pin 1 (T0)
+ MCFG_DEVICE_ADD("psg2", AY8910, XTAL(5'068'800) / 6) // from 8035 pin 1 (T0)
MCFG_AY8910_PORT_A_READ_CB(IOPORT("JO"))
MCFG_AY8910_PORT_B_READ_CB(IOPORT("I1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)