summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/overdriv.cpp
diff options
context:
space:
mode:
authorGravatarGravatar mooglyguy <therealmogminer@gmail.com>2018-12-20 22:28:07 +0100
committerGravatarGravatar mooglyguy <therealmogminer@gmail.com>2018-12-20 22:28:31 +0100
commit39f209a7e1c8c7d760a44b14688b14d1322707e6 (patch) (github)
treec57b885119621b9413f8f8b7b17aca571373ac70 /src/mame/drivers/overdriv.cpp
parenta9e6f19320a9f0c8489c6001b23a72ab232b23a0 (diff)
downloadmame-39f209a7e1c8c7d760a44b14688b14d1322707e6.tar.bz2
mame-39f209a7e1c8c7d760a44b14688b14d1322707e6.zip
-devices/sound/aica, flt_rc, ics2115, k007232, k053260, sp0250, upd7759: Removed MCFG macros. [Ryan Holtz]
-drivers/ajax, asterix, bottom9, chqflag, fastlane, flkatck, gradius3, igs_fear, igs011, mainevt, overdriv, pgm, segapico, spy, twin16, wecleman: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/mame/drivers/overdriv.cpp')
-rw-r--r--src/mame/drivers/overdriv.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/mame/drivers/overdriv.cpp b/src/mame/drivers/overdriv.cpp
index f6013cad98b..efb35042f87 100644
--- a/src/mame/drivers/overdriv.cpp
+++ b/src/mame/drivers/overdriv.cpp
@@ -325,37 +325,37 @@ void overdriv_state::machine_reset()
}
-MACHINE_CONFIG_START(overdriv_state::overdriv)
-
+void overdriv_state::overdriv(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", M68000, XTAL(24'000'000)/2) /* 12 MHz */
- MCFG_DEVICE_PROGRAM_MAP(overdriv_master_map)
- MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", overdriv_state, overdriv_cpuA_scanline, "screen", 0, 1)
+ M68000(config, m_maincpu, XTAL(24'000'000)/2); /* 12 MHz */
+ m_maincpu->set_addrmap(AS_PROGRAM, &overdriv_state::overdriv_master_map);
+ TIMER(config, "scantimer").configure_scanline(FUNC(overdriv_state::overdriv_cpuA_scanline), "screen", 0, 1);
- MCFG_DEVICE_ADD("sub", M68000, XTAL(24'000'000)/2) /* 12 MHz */
- MCFG_DEVICE_PROGRAM_MAP(overdriv_slave_map)
- //MCFG_DEVICE_VBLANK_INT_DRIVER("screen", overdriv_state, cpuB_interrupt)
+ M68000(config, m_subcpu, XTAL(24'000'000)/2); /* 12 MHz */
+ m_subcpu->set_addrmap(AS_PROGRAM, &overdriv_state::overdriv_slave_map);
+ //m_subcpu->set_vblank_int("screen", FUNC(overdriv_state::cpuB_interrupt));
/* IRQ 5 and 6 are generated by the main CPU. */
/* IRQ 5 is used only in test mode, to request the checksums of the gfx ROMs. */
- MCFG_DEVICE_ADD("audiocpu", MC6809E, XTAL(3'579'545)) /* 1.789 MHz?? This might be the right speed, but ROM testing */
- MCFG_DEVICE_PROGRAM_MAP(overdriv_sound_map) /* takes a little too much (the counter wraps from 0000 to 9999). */
- /* This might just mean that the video refresh rate is less than */
- /* 60 fps, that's how I fixed it for now. */
+ MC6809E(config, m_audiocpu, XTAL(3'579'545)); /* 1.789 MHz?? This might be the right speed, but ROM testing */
+ m_audiocpu->set_addrmap(AS_PROGRAM, &overdriv_state::overdriv_sound_map); /* takes a little too much (the counter wraps from 0000 to 9999). */
+ /* This might just mean that the video refresh rate is less than */
+ /* 60 fps, that's how I fixed it for now. */
- MCFG_QUANTUM_TIME(attotime::from_hz(12000))
+ config.m_minimum_quantum = attotime::from_hz(12000);
EEPROM_ER5911_16BIT(config, "eeprom").default_data(overdriv_default_eeprom, 128);
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_RAW_PARAMS(XTAL(24'000'000)/4,384,0,305,264,0,224)
- MCFG_SCREEN_UPDATE_DRIVER(overdriv_state, screen_update_overdriv)
- MCFG_SCREEN_PALETTE("palette")
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_raw(XTAL(24'000'000)/4,384,0,305,264,0,224);
+ screen.set_screen_update(FUNC(overdriv_state::screen_update_overdriv));
+ screen.set_palette("palette");
- MCFG_PALETTE_ADD("palette", 2048)
- MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_PALETTE_ENABLE_SHADOWS()
+ palette_device &palette(PALETTE(config, "palette", 2048));
+ palette.set_format(PALETTE_FORMAT_xBBBBBGGGGGRRRRR);
+ palette.enable_shadows();
K053246(config, m_k053246, 0);
m_k053246->set_sprite_callback(FUNC(overdriv_state::sprite_callback), this);
@@ -387,16 +387,16 @@ MACHINE_CONFIG_START(overdriv_state::overdriv)
YM2151(config, "ymsnd", XTAL(3'579'545)).add_route(0, "lspeaker", 0.5).add_route(1, "rspeaker", 0.5);
- MCFG_K053260_ADD("k053260_1", XTAL(3'579'545))
- MCFG_DEVICE_ADDRESS_MAP(0, overdriv_k053260_map)
- MCFG_SOUND_ROUTE(0, "lspeaker", 0.35)
- MCFG_SOUND_ROUTE(1, "rspeaker", 0.35)
+ k053260_device &k053260_1(K053260(config, "k053260_1", XTAL(3'579'545)));
+ k053260_1.set_addrmap(0, &overdriv_state::overdriv_k053260_map);
+ k053260_1.add_route(0, "lspeaker", 0.35);
+ k053260_1.add_route(1, "rspeaker", 0.35);
- MCFG_K053260_ADD("k053260_2", XTAL(3'579'545))
- MCFG_DEVICE_ADDRESS_MAP(0, overdriv_k053260_map)
- MCFG_SOUND_ROUTE(0, "lspeaker", 0.35)
- MCFG_SOUND_ROUTE(1, "rspeaker", 0.35)
-MACHINE_CONFIG_END
+ k053260_device &k053260_2(K053260(config, "k053260_2", XTAL(3'579'545)));
+ k053260_2.set_addrmap(0, &overdriv_state::overdriv_k053260_map);
+ k053260_2.add_route(0, "lspeaker", 0.35);
+ k053260_2.add_route(1, "rspeaker", 0.35);
+}