summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tail2nos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tail2nos.cpp')
-rw-r--r--src/mame/drivers/tail2nos.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/tail2nos.cpp b/src/mame/drivers/tail2nos.cpp
index 06c6e75470e..8e595e64e54 100644
--- a/src/mame/drivers/tail2nos.cpp
+++ b/src/mame/drivers/tail2nos.cpp
@@ -232,16 +232,16 @@ void tail2nos_state::machine_reset()
{
}
-void tail2nos_state::tail2nos(machine_config &config)
-{
+MACHINE_CONFIG_START(tail2nos_state::tail2nos)
+
/* basic machine hardware */
- M68000(config, m_maincpu, XTAL(20'000'000)/2); /* verified on pcb */
- m_maincpu->set_addrmap(AS_PROGRAM, &tail2nos_state::main_map);
- m_maincpu->set_vblank_int("screen", FUNC(tail2nos_state::irq6_line_hold));
+ MCFG_DEVICE_ADD("maincpu", M68000,XTAL(20'000'000)/2) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", tail2nos_state, irq6_line_hold)
- Z80(config, m_audiocpu, XTAL(20'000'000)/4); /* verified on pcb */
- m_audiocpu->set_addrmap(AS_PROGRAM, &tail2nos_state::sound_map);
- m_audiocpu->set_addrmap(AS_IO, &tail2nos_state::sound_port_map);
+ MCFG_DEVICE_ADD("audiocpu", Z80,XTAL(20'000'000)/4) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_IO_MAP(sound_port_map)
/* IRQs are triggered by the YM2608 */
ACIA6850(config, m_acia, 0);
@@ -250,13 +250,13 @@ void tail2nos_state::tail2nos(machine_config &config)
//m_acia->rts_handler().set("link", FUNC(rs232_port_device::write_rts));
/* 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(64*8, 32*8);
- screen.set_visarea(0*8, 40*8-1, 1*8, 31*8-1);
- screen.set_screen_update(FUNC(tail2nos_state::screen_update_tail2nos));
- screen.set_palette(m_palette);
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_REFRESH_RATE(60)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
+ MCFG_SCREEN_SIZE(64*8, 32*8)
+ MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
+ MCFG_SCREEN_UPDATE_DRIVER(tail2nos_state, screen_update_tail2nos)
+ MCFG_SCREEN_PALETTE(m_palette)
GFXDECODE(config, m_gfxdecode, m_palette, gfx_tail2nos);
PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 2048);
@@ -285,7 +285,7 @@ void tail2nos_state::tail2nos(machine_config &config)
ymsnd.add_route(0, "rspeaker", 0.25);
ymsnd.add_route(1, "lspeaker", 1.0);
ymsnd.add_route(2, "rspeaker", 1.0);
-}
+MACHINE_CONFIG_END