diff options
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 |
commit | 6f4c1f6e5b2525ac8b700b3a0754f5e99c4223e1 (patch) | |
tree | 4b0e0ac5cf1c3a7fd518a7d8f4d12f39291b2629 /src/mame/drivers/dec0.cpp | |
parent | 0be348c7fbc8c0478f724ba098dabeb9eb3aab8c (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/dec0.cpp')
-rw-r--r-- | src/mame/drivers/dec0.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp index 8d7304198ad..8c7050aa4e3 100644 --- a/src/mame/drivers/dec0.cpp +++ b/src/mame/drivers/dec0.cpp @@ -2045,7 +2045,7 @@ void dec0_state::birdtry(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &dec0_state::dec0_tb_map); // needs a tight sync with the mcu - config.m_perfect_cpu_quantum = subtag("maincpu"); + config.set_perfect_quantum(m_maincpu); i8751_device &mcu(I8751(config, m_mcu, XTAL(8'000'000))); mcu.port_in_cb<0>().set(FUNC(dec0_state::dec0_mcu_port0_r)); @@ -2076,7 +2076,7 @@ void dec0_state::robocop(machine_config &config) m_subcpu->set_addrmap(AS_PROGRAM, &dec0_state::robocop_sub_map); m_subcpu->add_route(ALL_OUTPUTS, "mono", 0); // internal sound unused - config.m_minimum_quantum = attotime::from_hz(3000); /* Interleave between HuC6280 & 68000 */ + config.set_maximum_quantum(attotime::from_hz(3000)); /* Interleave between HuC6280 & 68000 */ /* video hardware */ m_screen->set_screen_update(FUNC(dec0_state::screen_update_robocop)); @@ -2102,7 +2102,7 @@ void dec0_state::hippodrm(machine_config &config) m_subcpu->set_addrmap(AS_PROGRAM, &dec0_state::hippodrm_sub_map); m_subcpu->add_route(ALL_OUTPUTS, "mono", 0); // internal sound unused - config.m_minimum_quantum = attotime::from_hz(300); /* Interleave between H6280 & 68000 */ + config.set_maximum_quantum(attotime::from_hz(300)); /* Interleave between H6280 & 68000 */ /* video hardware */ m_screen->set_screen_update(FUNC(dec0_state::screen_update_hippodrm)); @@ -2118,7 +2118,7 @@ void dec0_state::ffantasybl(machine_config &config) // m_subcpu->set_addrmap(AS_PROGRAM, &dec0_state::hippodrm_sub_map); // m_subcpu->add_route(ALL_OUTPUTS, "mono", 0); // internal sound unused -// config.m_minimum_quantum = attotime::from_hz(300); /* Interleave between H6280 & 68000 */ +// config.set_maximum_quantum(attotime::from_hz(300)); /* Interleave between H6280 & 68000 */ /* video hardware */ m_screen->set_screen_update(FUNC(dec0_state::screen_update_hippodrm)); |