summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/de_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/de_2.cpp')
-rw-r--r--src/mame/drivers/de_2.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/mame/drivers/de_2.cpp b/src/mame/drivers/de_2.cpp
index c58ca6f62f0..e1f61791da7 100644
--- a/src/mame/drivers/de_2.cpp
+++ b/src/mame/drivers/de_2.cpp
@@ -531,17 +531,17 @@ WRITE8_MEMBER(de_2_state::lamps_w)
MACHINE_CONFIG_START(de_2_state::de_bg_audio)
/* sound CPU */
- MCFG_CPU_ADD("audiocpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E
- MCFG_CPU_PROGRAM_MAP(de_2_audio_map)
+ MCFG_DEVICE_ADD("audiocpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E
+ MCFG_DEVICE_PROGRAM_MAP(de_2_audio_map)
MCFG_SPEAKER_STANDARD_MONO("bg")
MCFG_YM2151_ADD("ym2151", XTAL(3'579'545))
- MCFG_YM2151_IRQ_HANDLER(WRITELINE(de_2_state, ym2151_irq_w))
+ MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, de_2_state, ym2151_irq_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.50)
- MCFG_SOUND_ADD("msm5205", MSM5205, XTAL(384'000))
- MCFG_MSM5205_VCLK_CB(WRITELINE(de_2_state, msm5205_irq_w))
+ MCFG_DEVICE_ADD("msm5205", MSM5205, XTAL(384'000))
+ MCFG_MSM5205_VCLK_CB(WRITELINE(*this, de_2_state, msm5205_irq_w))
MCFG_MSM5205_PRESCALER_SELECTOR(S96_4B)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.50)
MACHINE_CONFIG_END
@@ -549,10 +549,10 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(de_2_state::de_type1)
/* basic machine hardware */
MCFG_DECOCPU_TYPE1_ADD("decocpu", XTAL(8'000'000) / 2, ":maincpu")
- MCFG_DECOCPU_DISPLAY(READ8(de_2_state,display_r),WRITE8(de_2_state,display_w))
- MCFG_DECOCPU_SOUNDLATCH(WRITE8(de_2_state,sound_w))
- MCFG_DECOCPU_SWITCH(READ8(de_2_state,switch_r),WRITE8(de_2_state,switch_w))
- MCFG_DECOCPU_LAMP(WRITE8(de_2_state,lamps_w))
+ MCFG_DECOCPU_DISPLAY(READ8(*this, de_2_state,display_r),WRITE8(*this, de_2_state,display_w))
+ MCFG_DECOCPU_SOUNDLATCH(WRITE8(*this, de_2_state,sound_w))
+ MCFG_DECOCPU_SWITCH(READ8(*this, de_2_state,switch_r),WRITE8(*this, de_2_state,switch_w))
+ MCFG_DECOCPU_LAMP(WRITE8(*this, de_2_state,lamps_w))
/* Video */
MCFG_DEFAULT_LAYOUT(layout_de2)
@@ -564,10 +564,10 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(de_2_state::de_type2)
/* basic machine hardware */
MCFG_DECOCPU_TYPE2_ADD("decocpu", XTAL(8'000'000) / 2, ":maincpu")
- MCFG_DECOCPU_DISPLAY(READ8(de_2_state,display_r),WRITE8(de_2_state,display_w))
- MCFG_DECOCPU_SOUNDLATCH(WRITE8(de_2_state,sound_w))
- MCFG_DECOCPU_SWITCH(READ8(de_2_state,switch_r),WRITE8(de_2_state,switch_w))
- MCFG_DECOCPU_LAMP(WRITE8(de_2_state,lamps_w))
+ MCFG_DECOCPU_DISPLAY(READ8(*this, de_2_state,display_r),WRITE8(*this, de_2_state,display_w))
+ MCFG_DECOCPU_SOUNDLATCH(WRITE8(*this, de_2_state,sound_w))
+ MCFG_DECOCPU_SWITCH(READ8(*this, de_2_state,switch_r),WRITE8(*this, de_2_state,switch_w))
+ MCFG_DECOCPU_LAMP(WRITE8(*this, de_2_state,lamps_w))
/* Video */
MCFG_DEFAULT_LAYOUT(layout_de2)
@@ -579,10 +579,10 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(de_2_state::de_type2_alpha3)
/* basic machine hardware */
MCFG_DECOCPU_TYPE2_ADD("decocpu", XTAL(8'000'000) / 2, ":maincpu")
- MCFG_DECOCPU_DISPLAY(READ8(de_2_state,display_r),WRITE8(de_2_state,type2alpha3_display_w))
- MCFG_DECOCPU_SOUNDLATCH(WRITE8(de_2_state,sound_w))
- MCFG_DECOCPU_SWITCH(READ8(de_2_state,switch_r),WRITE8(de_2_state,switch_w))
- MCFG_DECOCPU_LAMP(WRITE8(de_2_state,lamps_w))
+ MCFG_DECOCPU_DISPLAY(READ8(*this, de_2_state,display_r),WRITE8(*this, de_2_state,type2alpha3_display_w))
+ MCFG_DECOCPU_SOUNDLATCH(WRITE8(*this, de_2_state,sound_w))
+ MCFG_DECOCPU_SWITCH(READ8(*this, de_2_state,switch_r),WRITE8(*this, de_2_state,switch_w))
+ MCFG_DECOCPU_LAMP(WRITE8(*this, de_2_state,lamps_w))
/* Video */
MCFG_DEFAULT_LAYOUT(layout_de2a3)
@@ -594,10 +594,10 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(de_2_state::de_type3)
/* basic machine hardware */
MCFG_DECOCPU_TYPE3_ADD("decocpu", XTAL(8'000'000) / 2, ":maincpu")
- MCFG_DECOCPU_DISPLAY(READ8(de_2_state,display_r),WRITE8(de_2_state,type3_display_w))
- MCFG_DECOCPU_SOUNDLATCH(WRITE8(de_2_state,sound_w))
- MCFG_DECOCPU_SWITCH(READ8(de_2_state,switch_r),WRITE8(de_2_state,switch_w))
- MCFG_DECOCPU_LAMP(WRITE8(de_2_state,lamps_w))
+ MCFG_DECOCPU_DISPLAY(READ8(*this, de_2_state,display_r),WRITE8(*this, de_2_state,type3_display_w))
+ MCFG_DECOCPU_SOUNDLATCH(WRITE8(*this, de_2_state,sound_w))
+ MCFG_DECOCPU_SWITCH(READ8(*this, de_2_state,switch_r),WRITE8(*this, de_2_state,switch_w))
+ MCFG_DECOCPU_LAMP(WRITE8(*this, de_2_state,lamps_w))
/* Video */
MCFG_DEFAULT_LAYOUT(layout_de2a3)