diff options
Diffstat (limited to 'src/mame/drivers/stuntair.cpp')
-rw-r--r-- | src/mame/drivers/stuntair.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mame/drivers/stuntair.cpp b/src/mame/drivers/stuntair.cpp index 3fcf547ecd6..5457f0cf70f 100644 --- a/src/mame/drivers/stuntair.cpp +++ b/src/mame/drivers/stuntair.cpp @@ -518,16 +518,16 @@ void stuntair_state::machine_reset() { } -void stuntair_state::stuntair(machine_config &config) -{ +MACHINE_CONFIG_START(stuntair_state::stuntair) + /* basic machine hardware */ - Z80(config, m_maincpu, XTAL(18'432'000)/6); /* 3 MHz? */ - m_maincpu->set_addrmap(AS_PROGRAM, &stuntair_state::stuntair_map); + MCFG_DEVICE_ADD("maincpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */ + MCFG_DEVICE_PROGRAM_MAP(stuntair_map) - Z80(config, m_audiocpu, XTAL(18'432'000)/6); /* 3 MHz? */ - m_audiocpu->set_addrmap(AS_PROGRAM, &stuntair_state::stuntair_sound_map); - m_audiocpu->set_addrmap(AS_IO, &stuntair_state::stuntair_sound_portmap); - m_audiocpu->set_periodic_int(FUNC(stuntair_state::irq0_line_hold), attotime::from_hz(420)); // drives music tempo, timing is approximate based on PCB audio recording.. and where is irq ack? + MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */ + MCFG_DEVICE_PROGRAM_MAP(stuntair_sound_map) + MCFG_DEVICE_IO_MAP(stuntair_sound_portmap) + MCFG_DEVICE_PERIODIC_INT_DRIVER(stuntair_state, irq0_line_hold, 420) // drives music tempo, timing is approximate based on PCB audio recording.. and where is irq ack? ls259_device &mainlatch(LS259(config, "mainlatch")); // type and location not verified mainlatch.q_out_cb<0>().set_nop(); // set but never cleared @@ -544,14 +544,14 @@ void stuntair_state::stuntair(machine_config &config) WATCHDOG_TIMER(config, "watchdog"); /* 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(256, 256); - screen.set_visarea(0, 256-1, 16, 256-16-1); - screen.set_screen_update(FUNC(stuntair_state::screen_update_stuntair)); - screen.set_palette(m_palette); - screen.screen_vblank().set(FUNC(stuntair_state::stuntair_irq)); + MCFG_SCREEN_ADD("screen", RASTER) + MCFG_SCREEN_REFRESH_RATE(60) // ? + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) + MCFG_SCREEN_SIZE(256, 256) + MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) + MCFG_SCREEN_UPDATE_DRIVER(stuntair_state, screen_update_stuntair) + MCFG_SCREEN_PALETTE(m_palette) + MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, stuntair_state, stuntair_irq)) GFXDECODE(config, m_gfxdecode, m_palette, gfx_stuntair); PALETTE(config, m_palette, FUNC(stuntair_state::stuntair_palette), 0x100 + 2); @@ -567,7 +567,7 @@ void stuntair_state::stuntair(machine_config &config) ay1.add_route(ALL_OUTPUTS, "mono", 0.50); AY8910(config, "ay2", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "mono", 0.50); -} +MACHINE_CONFIG_END |