summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/homerun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/homerun.cpp')
-rw-r--r--src/mame/drivers/homerun.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/homerun.cpp b/src/mame/drivers/homerun.cpp
index 37232f5a3df..a1538963dbc 100644
--- a/src/mame/drivers/homerun.cpp
+++ b/src/mame/drivers/homerun.cpp
@@ -353,15 +353,15 @@ void homerun_state::machine_reset()
MACHINE_CONFIG_START(homerun_state::dynashot)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, XTAL(20'000'000)/4)
- MCFG_CPU_PROGRAM_MAP(homerun_memmap)
- MCFG_CPU_IO_MAP(homerun_iomap)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", homerun_state, irq0_line_hold)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(20'000'000)/4)
+ MCFG_DEVICE_PROGRAM_MAP(homerun_memmap)
+ MCFG_DEVICE_IO_MAP(homerun_iomap)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", homerun_state, irq0_line_hold)
MCFG_DEVICE_ADD("ppi8255", I8255A, 0)
- MCFG_I8255_OUT_PORTA_CB(WRITE8(homerun_state, homerun_scrollhi_w))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(homerun_state, homerun_scrolly_w))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(homerun_state, homerun_scrollx_w))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, homerun_state, homerun_scrollhi_w))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, homerun_state, homerun_scrolly_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, homerun_state, homerun_scrollx_w))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -378,9 +378,9 @@ MACHINE_CONFIG_START(homerun_state::dynashot)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("ymsnd", YM2203, XTAL(20'000'000)/8)
+ MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(20'000'000)/8)
MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW"))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(homerun_state, homerun_banking_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, homerun_state, homerun_banking_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
@@ -388,10 +388,10 @@ MACHINE_CONFIG_START(homerun_state::homerun)
dynashot(config);
/* sound hardware */
- MCFG_SOUND_ADD("d7756", UPD7756, UPD7759_STANDARD_CLOCK)
+ MCFG_DEVICE_ADD("d7756", UPD7756)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
- MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_DEVICE_ADD("samples", SAMPLES)
MCFG_SAMPLES_CHANNELS(1)
MCFG_SAMPLES_NAMES(homerun_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
@@ -401,11 +401,11 @@ MACHINE_CONFIG_START(homerun_state::ganjaja)
dynashot(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PERIODIC_INT_DRIVER(homerun_state, irq0_line_hold, 4*60) // ?
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(homerun_state, irq0_line_hold, 4*60) // ?
/* sound hardware */
- MCFG_SOUND_ADD("d7756", UPD7756, UPD7759_STANDARD_CLOCK)
+ MCFG_DEVICE_ADD("d7756", UPD7756)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
MACHINE_CONFIG_END