diff options
Diffstat (limited to 'src/mame/drivers/firefox.cpp')
-rw-r--r-- | src/mame/drivers/firefox.cpp | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/src/mame/drivers/firefox.cpp b/src/mame/drivers/firefox.cpp index e7759684dcb..46ef9f4e30e 100644 --- a/src/mame/drivers/firefox.cpp +++ b/src/mame/drivers/firefox.cpp @@ -650,13 +650,13 @@ GFXDECODE_END MACHINE_CONFIG_START(firefox_state::firefox) /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", MC6809E, MASTER_XTAL/8) // 68B09E - MCFG_DEVICE_PROGRAM_MAP(main_map) + MC6809E(config, m_maincpu, MASTER_XTAL/8); // 68B09E + m_maincpu->set_addrmap(AS_PROGRAM, &firefox_state::main_map); /* interrupts count starting at end of VBLANK, which is 44, so add 44 */ TIMER(config, "32v").configure_scanline(FUNC(firefox_state::video_timer_callback), "screen", 96+44, 128); - MCFG_DEVICE_ADD("audiocpu", M6502, MASTER_XTAL/8) - MCFG_DEVICE_PROGRAM_MAP(audio_map) + M6502(config, m_audiocpu, MASTER_XTAL/8); + m_audiocpu->set_addrmap(AS_PROGRAM, &firefox_state::audio_map); config.m_minimum_quantum = attotime::from_hz(60000); @@ -688,12 +688,14 @@ MACHINE_CONFIG_START(firefox_state::firefox) /* video hardware */ GFXDECODE(config, m_gfxdecode, m_palette, gfx_firefox); - MCFG_PALETTE_ADD("palette", 512) + PALETTE(config, m_palette).set_entries(512); - MCFG_LASERDISC_22VP931_ADD("laserdisc") - MCFG_LASERDISC_OVERLAY_DRIVER(64*8, 525, firefox_state, screen_update_firefox) - MCFG_LASERDISC_OVERLAY_CLIP(7*8, 53*8-1, 44, 480+44) - MCFG_LASERDISC_OVERLAY_PALETTE("palette") + PHILLIPS_22VP931(config, m_laserdisc, 0); + m_laserdisc->set_overlay(64*8, 525, FUNC(firefox_state::screen_update_firefox)); + m_laserdisc->set_overlay_clip(7*8, 53*8-1, 44, 480+44); + m_laserdisc->set_overlay_palette(m_palette); + m_laserdisc->add_route(0, "lspeaker", 0.50); + m_laserdisc->add_route(1, "rspeaker", 0.50); MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") @@ -716,29 +718,25 @@ MACHINE_CONFIG_START(firefox_state::firefox) GENERIC_LATCH_8(config, m_soundlatch2); - MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_XTAL/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.30) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.30) + pokey_device &pokey1(POKEY(config, "pokey1", MASTER_XTAL/8)); + pokey1.add_route(ALL_OUTPUTS, "lspeaker", 0.30); + pokey1.add_route(ALL_OUTPUTS, "rspeaker", 0.30); - MCFG_DEVICE_ADD("pokey2", POKEY, MASTER_XTAL/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.30) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.30) + pokey_device &pokey2(POKEY(config, "pokey2", MASTER_XTAL/8)); + pokey2.add_route(ALL_OUTPUTS, "lspeaker", 0.30); + pokey2.add_route(ALL_OUTPUTS, "rspeaker", 0.30); - MCFG_DEVICE_ADD("pokey3", POKEY, MASTER_XTAL/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.30) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.30) + pokey_device &pokey3(POKEY(config, "pokey3", MASTER_XTAL/8)); + pokey3.add_route(ALL_OUTPUTS, "lspeaker", 0.30); + pokey3.add_route(ALL_OUTPUTS, "rspeaker", 0.30); - MCFG_DEVICE_ADD("pokey4", POKEY, MASTER_XTAL/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.30) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.30) + pokey_device &pokey4(POKEY(config, "pokey4", MASTER_XTAL/8)); + pokey4.add_route(ALL_OUTPUTS, "lspeaker", 0.30); + pokey4.add_route(ALL_OUTPUTS, "rspeaker", 0.30); - MCFG_DEVICE_ADD("tms", TMS5220, MASTER_XTAL/2/11) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.75) - - MCFG_DEVICE_MODIFY("laserdisc") - MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) - MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) + TMS5220(config, m_tms, MASTER_XTAL/2/11); + m_tms->add_route(ALL_OUTPUTS, "lspeaker", 0.75); + m_tms->add_route(ALL_OUTPUTS, "rspeaker", 0.75); MACHINE_CONFIG_END |