diff options
Diffstat (limited to 'src/mame/drivers/taxidriv.cpp')
-rw-r--r-- | src/mame/drivers/taxidriv.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/drivers/taxidriv.cpp b/src/mame/drivers/taxidriv.cpp index 4756ff18a1b..fc3e0af0d8c 100644 --- a/src/mame/drivers/taxidriv.cpp +++ b/src/mame/drivers/taxidriv.cpp @@ -332,21 +332,21 @@ void taxidriv_state::taxidriv_palette(palette_device &palette) const } } -MACHINE_CONFIG_START(taxidriv_state::taxidriv) - +void taxidriv_state::taxidriv(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80,4000000) /* 4 MHz ??? */ - MCFG_DEVICE_PROGRAM_MAP(main_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", taxidriv_state, irq0_line_hold) + Z80(config, m_maincpu, 4000000); /* 4 MHz ??? */ + m_maincpu->set_addrmap(AS_PROGRAM, &taxidriv_state::main_map); + m_maincpu->set_vblank_int("screen", FUNC(taxidriv_state::irq0_line_hold)); - MCFG_DEVICE_ADD("sub", Z80,4000000) /* 4 MHz ??? */ - MCFG_DEVICE_PROGRAM_MAP(cpu2_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", taxidriv_state, irq0_line_hold) /* ??? */ + z80_device &subcpu(Z80(config, "sub", 4000000)); /* 4 MHz ??? */ + subcpu.set_addrmap(AS_PROGRAM, &taxidriv_state::cpu2_map); + subcpu.set_vblank_int("screen", FUNC(taxidriv_state::irq0_line_hold)); /* ??? */ - MCFG_DEVICE_ADD("audiocpu", Z80,4000000) /* 4 MHz ??? */ - MCFG_DEVICE_PROGRAM_MAP(cpu3_map) - MCFG_DEVICE_IO_MAP(cpu3_port_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", taxidriv_state, irq0_line_hold) /* ??? */ + z80_device &audiocpu(Z80(config, "audiocpu", 4000000)); /* 4 MHz ??? */ + audiocpu.set_addrmap(AS_PROGRAM, &taxidriv_state::cpu3_map); + audiocpu.set_addrmap(AS_IO, &taxidriv_state::cpu3_port_map); + audiocpu.set_vblank_int("screen", FUNC(taxidriv_state::irq0_line_hold)); /* ??? */ config.m_minimum_quantum = attotime::from_hz(6000); /* 100 CPU slices per frame - a high value to ensure proper */ /* synchronization of the CPUs */ @@ -379,13 +379,13 @@ MACHINE_CONFIG_START(taxidriv_state::taxidriv) ppi4.out_pc_callback().set(FUNC(taxidriv_state::p4c_w)); /* video hardware */ - 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, 1*8, 27*8-1) - MCFG_SCREEN_UPDATE_DRIVER(taxidriv_state, screen_update) - MCFG_SCREEN_PALETTE(m_palette) + 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, 1*8, 27*8-1); + screen.set_screen_update(FUNC(taxidriv_state::screen_update)); + screen.set_palette(m_palette); GFXDECODE(config, m_gfxdecode, m_palette, gfx_taxidriv); PALETTE(config, m_palette, FUNC(taxidriv_state::taxidriv_palette), 16); @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(taxidriv_state::taxidriv) ay8910_device &ay2(AY8910(config, "ay2", 1250000)); ay2.port_a_read_callback().set(FUNC(taxidriv_state::p8910_1a_r)); ay2.add_route(ALL_OUTPUTS, "mono", 0.25); -MACHINE_CONFIG_END +} |