diff options
Diffstat (limited to 'src/mame/drivers/mephistp.cpp')
-rw-r--r-- | src/mame/drivers/mephistp.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/drivers/mephistp.cpp b/src/mame/drivers/mephistp.cpp index 25d927c0623..aedff4d87b3 100644 --- a/src/mame/drivers/mephistp.cpp +++ b/src/mame/drivers/mephistp.cpp @@ -87,9 +87,9 @@ WRITE8_MEMBER(mephisto_pinball_state::t0_t1_w) void mephisto_pinball_state::ay8910_update() { if (m_ay8910_bdir) - m_aysnd->data_address_w(m_ay8910_bc1, m_ay8910_data); + m_aysnd->data_address_w(machine().dummy_space(), m_ay8910_bc1, m_ay8910_data); else if (m_ay8910_bc1) - m_ay8910_data = m_aysnd->data_r(); + m_ay8910_data = m_aysnd->data_r(machine().dummy_space(), 0); } WRITE8_MEMBER(mephisto_pinball_state::ay8910_columns_w) @@ -160,18 +160,17 @@ void mephisto_pinball_state::machine_reset() { } -void mephisto_pinball_state::mephisto(machine_config &config) -{ +MACHINE_CONFIG_START(mephisto_pinball_state::mephisto) /* basic machine hardware */ - I8088(config, m_maincpu, XTAL(18'000'000)/3); - m_maincpu->set_addrmap(AS_PROGRAM, &mephisto_pinball_state::mephisto_map); - //m_maincpu->set_irq_acknowledge_callback("muart", FUNC(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) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - //i8256_device &muart(I8256(config, "muart", XTAL(18'000'000)/3)); - //muart.irq_handler().set_inputline(m_maincpu, INPUT_LINE_IRQ0); - //muart.txd_handler().set_inputline("audiocpu", MCS51_RX_LINE); + //MCFG_DEVICE_ADD("muart", I8256, XTAL(18'000'000)/3) + //MCFG_I8256_IRQ_HANDLER(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) + //MCFG_I8256_TXD_HANDLER(INPUTLINE("audiocpu", MCS51_RX_LINE)) I8155(config, "ic20", XTAL(18'000'000)/6); //i8155_device &i8155_1(I8155(config, "ic20", XTAL(18'000'000)/6)); @@ -196,20 +195,21 @@ void mephisto_pinball_state::mephisto(machine_config &config) m_aysnd->port_b_read_callback().set(FUNC(mephisto_pinball_state::ay8910_inputs_r)); m_aysnd->add_route(ALL_OUTPUTS, "mono", 0.5); - DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.5); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); -} + 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) +MACHINE_CONFIG_END -void mephisto_pinball_state::sport2k(machine_config &config) -{ +MACHINE_CONFIG_START(mephisto_pinball_state::sport2k) mephisto(config); - subdevice<i8051_device>("soundcpu")->set_addrmap(AS_IO, &mephisto_pinball_state::sport2k_8051_io); + MCFG_DEVICE_MODIFY("soundcpu") + MCFG_DEVICE_IO_MAP(sport2k_8051_io) - YM3812(config, "ymsnd", XTAL(14'318'181)/4).add_route(ALL_OUTPUTS, "mono", 0.5); -} + MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) +MACHINE_CONFIG_END /*------------------------------------------------------------------- / Mephisto |