diff options
Diffstat (limited to 'src/mame/drivers/wpc_flip1.cpp')
-rw-r--r-- | src/mame/drivers/wpc_flip1.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/mame/drivers/wpc_flip1.cpp b/src/mame/drivers/wpc_flip1.cpp index 4c6e238c02c..72136fbc4bb 100644 --- a/src/mame/drivers/wpc_flip1.cpp +++ b/src/mame/drivers/wpc_flip1.cpp @@ -158,18 +158,21 @@ void wpc_flip1_state::init_wpc_flip1() wpc_dot_state::init_wpc_dot(); } -MACHINE_CONFIG_START(wpc_flip1_state::wpc_flip1) +void wpc_flip1_state::wpc_flip1(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M6809, 2000000) - MCFG_DEVICE_PROGRAM_MAP(wpc_flip1_map) + M6809(config, m_maincpu, 2000000); + m_maincpu->set_addrmap(AS_PROGRAM, &wpc_flip1_state::wpc_flip1_map); - MCFG_WMS_WPC_ADD("wpc") - MCFG_WPC_IRQ_ACKNOWLEDGE(WRITELINE(*this, wpc_flip1_state,wpc_irq_w)) - MCFG_WPC_FIRQ_ACKNOWLEDGE(WRITELINE(*this, wpc_flip1_state,wpc_firq_w)) - MCFG_WPC_ROMBANK(WRITE8(*this, wpc_flip1_state,wpc_rombank_w)) - MCFG_WPC_SOUND_CTRL(READ8(*this, wpc_flip1_state,wpc_sound_ctrl_r),WRITE8(*this, wpc_flip1_state,wpc_sound_ctrl_w)) - MCFG_WPC_SOUND_DATA(READ8(*this, wpc_flip1_state,wpc_sound_data_r),WRITE8(*this, wpc_flip1_state,wpc_sound_data_w)) - MCFG_WPC_DMDBANK(WRITE8(*this, wpc_flip1_state,wpc_dmdbank_w)) + WPCASIC(config, m_wpc, 0); + m_wpc->irq_callback().set(FUNC(wpc_flip1_state::wpc_irq_w)); + m_wpc->firq_callback().set(FUNC(wpc_flip1_state::wpc_firq_w)); + m_wpc->bank_write().set(FUNC(wpc_flip1_state::wpc_rombank_w)); + m_wpc->sound_ctrl_read().set(FUNC(wpc_flip1_state::wpc_sound_ctrl_r)); + m_wpc->sound_ctrl_write().set(FUNC(wpc_flip1_state::wpc_sound_ctrl_w)); + m_wpc->sound_data_read().set(FUNC(wpc_flip1_state::wpc_sound_data_r)); + m_wpc->sound_data_write().set(FUNC(wpc_flip1_state::wpc_sound_data_w)); + m_wpc->dmdbank_write().set(FUNC(wpc_flip1_state::wpc_dmdbank_w)); SPEAKER(config, "speaker").front_center(); WPCSND(config, m_wpcsnd); @@ -183,7 +186,7 @@ MACHINE_CONFIG_START(wpc_flip1_state::wpc_flip1) screen.set_visarea(0, 128-1, 0, 32-1); screen.set_refresh_hz(60); screen.set_screen_update(FUNC(wpc_flip1_state::screen_update)); -MACHINE_CONFIG_END +} /*----------------- / The Addams Family #20017 |