diff options
Diffstat (limited to 'src/mame/drivers/mexico86.cpp')
-rw-r--r-- | src/mame/drivers/mexico86.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/mexico86.cpp b/src/mame/drivers/mexico86.cpp index 74250a8a540..4c50e6bcc14 100644 --- a/src/mame/drivers/mexico86.cpp +++ b/src/mame/drivers/mexico86.cpp @@ -427,22 +427,22 @@ void mexico86_state::machine_reset() MACHINE_CONFIG_START(mexico86_state::mexico86) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu",Z80, 24000000/4) /* 6 MHz, Uses clock divided 24MHz OSC */ - MCFG_CPU_PROGRAM_MAP(mexico86_map) + MCFG_DEVICE_ADD("maincpu",Z80, 24000000/4) /* 6 MHz, Uses clock divided 24MHz OSC */ + MCFG_DEVICE_PROGRAM_MAP(mexico86_map) - MCFG_CPU_ADD("audiocpu", Z80, 24000000/4) /* 6 MHz, Uses clock divided 24MHz OSC */ - MCFG_CPU_PROGRAM_MAP(mexico86_sound_map) - MCFG_CPU_VBLANK_INT_DRIVER("screen", mexico86_state, irq0_line_hold) + MCFG_DEVICE_ADD("audiocpu", Z80, 24000000/4) /* 6 MHz, Uses clock divided 24MHz OSC */ + MCFG_DEVICE_PROGRAM_MAP(mexico86_sound_map) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mexico86_state, irq0_line_hold) - MCFG_CPU_ADD("mcu", M68705P3, 4000000) /* xtal is 4MHz, divided by 4 internally */ + MCFG_DEVICE_ADD("mcu", M68705P3, 4000000) /* xtal is 4MHz, divided by 4 internally */ MCFG_M68705_PORTC_R_CB(IOPORT("IN0")); - MCFG_M68705_PORTA_W_CB(WRITE8(mexico86_state, mexico86_68705_port_a_w)); - MCFG_M68705_PORTB_W_CB(WRITE8(mexico86_state, mexico86_68705_port_b_w)); - MCFG_CPU_VBLANK_INT_DRIVER("screen", mexico86_state, mexico86_m68705_interrupt) + MCFG_M68705_PORTA_W_CB(WRITE8(*this, mexico86_state, mexico86_68705_port_a_w)); + MCFG_M68705_PORTB_W_CB(WRITE8(*this, mexico86_state, mexico86_68705_port_b_w)); + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mexico86_state, mexico86_m68705_interrupt) - MCFG_CPU_ADD("sub", Z80, 8000000/2) /* 4 MHz, Uses 8Mhz OSC */ - MCFG_CPU_PROGRAM_MAP(mexico86_sub_cpu_map) - MCFG_CPU_VBLANK_INT_DRIVER("screen", mexico86_state, irq0_line_hold) + MCFG_DEVICE_ADD("sub", Z80, 8000000/2) /* 4 MHz, Uses 8Mhz OSC */ + MCFG_DEVICE_PROGRAM_MAP(mexico86_sub_cpu_map) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mexico86_state, irq0_line_hold) MCFG_QUANTUM_TIME(attotime::from_hz(6000)) /* 100 CPU slices per frame - an high value to ensure proper synchronization of the CPUs */ @@ -462,7 +462,7 @@ MACHINE_CONFIG_START(mexico86_state::mexico86) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("ymsnd", YM2203, 3000000) + MCFG_DEVICE_ADD("ymsnd", YM2203, 3000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1")) MCFG_SOUND_ROUTE(0, "mono", 0.30) @@ -490,8 +490,8 @@ MACHINE_CONFIG_START(mexico86_state::kikikai) /* basic machine hardware */ - MCFG_CPU_MODIFY("maincpu") - MCFG_CPU_VBLANK_INT_DRIVER("screen", mexico86_state, kikikai_interrupt) // IRQs should be triggered by the MCU, but we don't have it + MCFG_DEVICE_MODIFY("maincpu") + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mexico86_state, kikikai_interrupt) // IRQs should be triggered by the MCU, but we don't have it MCFG_DEVICE_REMOVE("mcu") // we don't have code for the MC6801U4 |