summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rohga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rohga.cpp')
-rw-r--r--src/mame/drivers/rohga.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/rohga.cpp b/src/mame/drivers/rohga.cpp
index 87704621b15..4a99049c2f1 100644
--- a/src/mame/drivers/rohga.cpp
+++ b/src/mame/drivers/rohga.cpp
@@ -938,11 +938,11 @@ MACHINE_CONFIG_START(rohga_state::rohga)
MCFG_DECO_SPRITE_GFX_REGION(3)
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
- MCFG_DECO104_ADD("ioprot")
- MCFG_DECO146_IN_PORTA_CB(IOPORT("INPUTS"))
- MCFG_DECO146_IN_PORTB_CB(IOPORT("SYSTEM"))
- MCFG_DECO146_IN_PORTC_CB(IOPORT("DSW"))
- MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0))
+ DECO104PROT(config, m_ioprot, 0);
+ m_ioprot->port_a_cb().set_ioport("INPUTS");
+ m_ioprot->port_b_cb().set_ioport("SYSTEM");
+ m_ioprot->port_c_cb().set_ioport("DSW");
+ m_ioprot->soundlatch_irq_cb().set_inputline("audiocpu", 0);
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
@@ -1030,12 +1030,12 @@ MACHINE_CONFIG_START(rohga_state::wizdfire)
MCFG_DECO_SPRITE_GFX_REGION(4)
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
- MCFG_DECO104_ADD("ioprot")
- MCFG_DECO146_IN_PORTA_CB(IOPORT("INPUTS"))
- MCFG_DECO146_IN_PORTB_CB(IOPORT("SYSTEM"))
- MCFG_DECO146_IN_PORTC_CB(IOPORT("DSW"))
- MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0))
- MCFG_DECO146_SET_INTERFACE_SCRAMBLE_REVERSE
+ DECO104PROT(config, m_ioprot, 0);
+ m_ioprot->port_a_cb().set_ioport("INPUTS");
+ m_ioprot->port_b_cb().set_ioport("SYSTEM");
+ m_ioprot->port_c_cb().set_ioport("DSW");
+ m_ioprot->soundlatch_irq_cb().set_inputline("audiocpu", 0);
+ m_ioprot->set_interface_scramble_reverse();
MCFG_VIDEO_START_OVERRIDE(rohga_state, wizdfire)
@@ -1219,11 +1219,11 @@ MACHINE_CONFIG_START(rohga_state::schmeisr)
MCFG_DECO_SPRITE_GFX_REGION(3)
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
- MCFG_DECO104_ADD("ioprot")
- MCFG_DECO146_IN_PORTA_CB(IOPORT("INPUTS"))
- MCFG_DECO146_IN_PORTB_CB(IOPORT("SYSTEM"))
- MCFG_DECO146_IN_PORTC_CB(IOPORT("DSW"))
- MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0))
+ DECO104PROT(config, m_ioprot, 0);
+ m_ioprot->port_a_cb().set_ioport("INPUTS");
+ m_ioprot->port_b_cb().set_ioport("SYSTEM");
+ m_ioprot->port_c_cb().set_ioport("DSW");
+ m_ioprot->soundlatch_irq_cb().set_inputline("audiocpu", 0);
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();