diff options
Diffstat (limited to 'src/mame/drivers/pbaction.cpp')
-rw-r--r-- | src/mame/drivers/pbaction.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/pbaction.cpp b/src/mame/drivers/pbaction.cpp index e327f926ff3..0e12ebdd703 100644 --- a/src/mame/drivers/pbaction.cpp +++ b/src/mame/drivers/pbaction.cpp @@ -448,8 +448,8 @@ static const z80_daisy_config daisy_chain[] = { nullptr } }; -void pbaction_state::pbaction(machine_config &config) -{ +MACHINE_CONFIG_START(pbaction_state::pbaction) + /* basic machine hardware */ Z80(config, m_maincpu, 4_MHz_XTAL); m_maincpu->set_addrmap(AS_PROGRAM, &pbaction_state::pbaction_map); @@ -463,14 +463,14 @@ void pbaction_state::pbaction(machine_config &config) m_ctc->intr_callback().set_inputline(m_audiocpu, 0); /* video hardware */ - screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); - screen.set_refresh_hz(60); - screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); - screen.set_size(32*8, 32*8); - screen.set_visarea(0*8, 32*8-1, 2*8, 30*8-1); - screen.set_screen_update(FUNC(pbaction_state::screen_update_pbaction)); - screen.set_palette(m_palette); - screen.screen_vblank().set(FUNC(pbaction_state::vblank_irq)); + MCFG_SCREEN_ADD("screen", RASTER) + MCFG_SCREEN_REFRESH_RATE(60) + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) + MCFG_SCREEN_SIZE(32*8, 32*8) + MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) + MCFG_SCREEN_UPDATE_DRIVER(pbaction_state, screen_update_pbaction) + MCFG_SCREEN_PALETTE(m_palette) + MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, pbaction_state, vblank_irq)) GFXDECODE(config, m_gfxdecode, m_palette, gfx_pbaction); PALETTE(config, m_palette).set_format(palette_device::xBGR_444, 256); @@ -483,7 +483,7 @@ void pbaction_state::pbaction(machine_config &config) AY8910(config, "ay1", 12_MHz_XTAL/8).add_route(ALL_OUTPUTS, "mono", 0.25); AY8910(config, "ay2", 12_MHz_XTAL/8).add_route(ALL_OUTPUTS, "mono", 0.25); AY8910(config, "ay3", 12_MHz_XTAL/8).add_route(ALL_OUTPUTS, "mono", 0.25); -} +MACHINE_CONFIG_END void pbaction_state::pbactionx(machine_config &config) { |