diff options
Diffstat (limited to 'src/mame/drivers/mephistp.cpp')
-rw-r--r-- | src/mame/drivers/mephistp.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/mephistp.cpp b/src/mame/drivers/mephistp.cpp index 926ce10cb2b..c5508529d3a 100644 --- a/src/mame/drivers/mephistp.cpp +++ b/src/mame/drivers/mephistp.cpp @@ -160,9 +160,9 @@ void mephisto_pinball_state::machine_reset() MACHINE_CONFIG_START(mephisto_pinball_state::mephisto) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", I8088, XTAL(18'000'000)/3) - MCFG_CPU_PROGRAM_MAP(mephisto_map) - //MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("muart", i8256_device, inta_cb) + MCFG_DEVICE_ADD("maincpu", I8088, XTAL(18'000'000)/3) + MCFG_DEVICE_PROGRAM_MAP(mephisto_map) + //MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("muart", i8256_device, inta_cb) MCFG_NVRAM_ADD_0FILL("nvram") @@ -171,27 +171,27 @@ MACHINE_CONFIG_START(mephisto_pinball_state::mephisto) //MCFG_I8256_TXD_HANDLER(INPUTLINE("audiocpu", MCS51_RX_LINE)) MCFG_DEVICE_ADD("ic20", I8155, XTAL(18'000'000)/6) - //MCFG_I8155_OUT_TIMEROUT_CB(DEVWRITELINE("muart", i8256_device, write_txc)) + //MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE("muart", i8256_device, write_txc)) MCFG_DEVICE_ADD("ic9", I8155, XTAL(18'000'000)/6) - //MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE(mephisto_pinball_state, clk_shift_w)) - - MCFG_CPU_ADD("soundcpu", I8051, XTAL(12'000'000)) - MCFG_CPU_PROGRAM_MAP(mephisto_8051_map) // EA tied high for external program ROM - MCFG_CPU_IO_MAP(mephisto_8051_io) - MCFG_MCS51_PORT_P1_IN_CB(READ8(mephisto_pinball_state, ay8910_read)) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(mephisto_pinball_state, ay8910_write)) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(mephisto_pinball_state, t0_t1_w)) + //MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE(*this, mephisto_pinball_state, clk_shift_w)) + + MCFG_DEVICE_ADD("soundcpu", I8051, XTAL(12'000'000)) + MCFG_DEVICE_PROGRAM_MAP(mephisto_8051_map) // EA tied high for external program ROM + MCFG_DEVICE_IO_MAP(mephisto_8051_io) + MCFG_MCS51_PORT_P1_IN_CB(READ8(*this, mephisto_pinball_state, ay8910_read)) + MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, mephisto_pinball_state, ay8910_write)) + MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, mephisto_pinball_state, t0_t1_w)) MCFG_MCS51_SERIAL_RX_CB(NOOP) // from MUART MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("aysnd", AY8910, XTAL(12'000'000)/8) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(mephisto_pinball_state, ay8910_columns_w)) - MCFG_AY8910_PORT_B_READ_CB(READ8(mephisto_pinball_state, ay8910_inputs_r)) + MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000)/8) + MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, mephisto_pinball_state, ay8910_columns_w)) + MCFG_AY8910_PORT_B_READ_CB(READ8(*this, mephisto_pinball_state, ay8910_inputs_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) - MCFG_SOUND_ADD("dac", DAC08, 0) + MCFG_DEVICE_ADD("dac", DAC08, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -200,10 +200,10 @@ MACHINE_CONFIG_END #ifdef UNUSED_DEFINITION static MACHINE_CONFIG_START(sport2k) mephisto(config); - MCFG_CPU_MODIFY("soundcpu") - MCFG_CPU_IO_MAP(sport2k_8051_io) + MCFG_DEVICE_MODIFY("soundcpu") + MCFG_DEVICE_IO_MAP(sport2k_8051_io) - MCFG_SOUND_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) + MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END #endif |