summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/toaplan1.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-01 00:47:41 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-01 00:47:41 +1100
commit6f4c1f6e5b2525ac8b700b3a0754f5e99c4223e1 (patch)
tree4b0e0ac5cf1c3a7fd518a7d8f4d12f39291b2629 /src/mame/drivers/toaplan1.cpp
parent0be348c7fbc8c0478f724ba098dabeb9eb3aab8c (diff)
Spring cleaning:
* Changed emu_fatalerror to use util::string_format semantics * Fixed some incorrectly marked up stuff in build scripts * Make internal layout compression type a scoped enum (only zlib is supported still, but at least the values aren't magic numbers now) * Fixed memory leaks in Xbox USB * There can only be one "perfect quantum" device - enforce that only the root machine can set it, as allowing subdevices to will cause weird issues with slot cards overiding it * Allow multiple devices to set maximum quantum and use the most restrictive one (it's maximum quantum, it would be minimum interleave) * Got rid of device_slot_card_interface as it wasn't providing value * Added a helper template to reduce certain kinds of boilerplate in slots/buses * Cleaned up some particularly bad slot code (plenty more of that to do), and made some slots more idiomatic
Diffstat (limited to 'src/mame/drivers/toaplan1.cpp')
-rw-r--r--src/mame/drivers/toaplan1.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/toaplan1.cpp b/src/mame/drivers/toaplan1.cpp
index 88ad2105c34..430659b4411 100644
--- a/src/mame/drivers/toaplan1.cpp
+++ b/src/mame/drivers/toaplan1.cpp
@@ -1940,7 +1940,7 @@ void toaplan1_rallybik_state::rallybik(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_rallybik_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_rallybik_state::rallybik_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
ls259_device &coinlatch(LS259(config, "coinlatch")); // 19L
coinlatch.q_out_cb<4>().set(FUNC(toaplan1_rallybik_state::coin_counter_1_w));
@@ -1980,7 +1980,7 @@ void toaplan1_state::truxton(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_state::truxton_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
@@ -2010,7 +2010,7 @@ void toaplan1_state::hellfire(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_state::hellfire_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
@@ -2040,7 +2040,7 @@ void toaplan1_state::zerowing(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_state::zerowing_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
MCFG_MACHINE_RESET_OVERRIDE(toaplan1_state,zerowing)
@@ -2077,7 +2077,7 @@ void toaplan1_demonwld_state::demonwld(machine_config &config)
m_dsp->set_addrmap(AS_IO, &toaplan1_demonwld_state::dsp_io_map);
m_dsp->bio().set(FUNC(toaplan1_demonwld_state::bio_r));
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
@@ -2108,7 +2108,7 @@ void toaplan1_samesame_state::samesame(machine_config &config)
audiocpu.set_addrmap(AS_IO, &toaplan1_samesame_state::hd647180_io_map);
audiocpu.in_pd_callback().set(FUNC(toaplan1_samesame_state::cmdavailable_r));
- config.m_perfect_cpu_quantum = subtag("maincpu");
+ config.set_perfect_quantum(m_maincpu);
MCFG_MACHINE_RESET_OVERRIDE(toaplan1_samesame_state,zerowing)
@@ -2140,7 +2140,7 @@ void toaplan1_state::outzone(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_state::outzone_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
MCFG_MACHINE_RESET_OVERRIDE(toaplan1_state,zerowing)
@@ -2172,7 +2172,7 @@ void toaplan1_state::outzonecv(machine_config &config)
m_audiocpu->set_addrmap(AS_PROGRAM, &toaplan1_state::sound_map);
m_audiocpu->set_addrmap(AS_IO, &toaplan1_state::zerowing_sound_io_map);
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
MCFG_MACHINE_RESET_OVERRIDE(toaplan1_state,zerowing)
@@ -2206,7 +2206,7 @@ void toaplan1_state::vimana(machine_config &config)
audiocpu.in_pa_callback().set(FUNC(toaplan1_state::vimana_dswb_invert_r)); // note these inputs seem to be inverted, unlike the DSWA ones.
audiocpu.in_pg_callback().set(FUNC(toaplan1_state::vimana_tjump_invert_r)); // note these inputs seem to be inverted, unlike the DSWA ones.
- config.m_minimum_quantum = attotime::from_hz(600);
+ config.set_maximum_quantum(attotime::from_hz(600));
MCFG_MACHINE_RESET_OVERRIDE(toaplan1_state,zerowing)