diff options
author | 2013-12-19 11:58:05 +0000 | |
---|---|---|
committer | 2013-12-19 11:58:05 +0000 | |
commit | 614b76c0fec49515e14ff614a33c7dd79364140f (patch) | |
tree | d64adb2c88fc60884775d2c12f21768fe1b2433e /src/emu/machine/netlist.c | |
parent | 786ca09655d1925eb547f49f2da9b7395a86d492 (diff) |
Pong update:
- based on feedback from IRC hopefully fixed issues like "jumping"
- adjusted VR1 and VR2 to 50%
- disabled all printf output.
Diffstat (limited to 'src/emu/machine/netlist.c')
-rw-r--r-- | src/emu/machine/netlist.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/emu/machine/netlist.c b/src/emu/machine/netlist.c index 7ff8e043be8..5e5b5e67d7f 100644 --- a/src/emu/machine/netlist.c +++ b/src/emu/machine/netlist.c @@ -50,6 +50,8 @@ #include "netlist/nl_setup.h" #include "netlist/devices/net_lib.h" +#define LOG_DEV_CALLS(x) do { } while (0); + // ---------------------------------------------------------------------------------------- // netlist_mame_device // ---------------------------------------------------------------------------------------- @@ -71,14 +73,18 @@ void netlist_mame_device::static_set_constructor(device_t &device, void (*setup_ { netlist_mame_device &netlist = downcast<netlist_mame_device &>(device); netlist.m_setup_func = setup_func; + LOG_DEV_CALLS(("static_set_constructor\n")); } void netlist_mame_device::device_config_complete() { + LOG_DEV_CALLS(("device_config_complete\n")); } void netlist_mame_device::device_start() { + LOG_DEV_CALLS(("device_start\n")); + m_netlist = global_alloc_clear(netlist_mame_t(*this)); m_netlist->set_clock_freq(this->clock()); @@ -91,15 +97,14 @@ void netlist_mame_device::device_start() m_setup_func(*m_setup); m_setup->start_devices(); + m_setup->resolve_inputs(); - bool allok = true; - for (device_start_list_t::entry_t *ods = m_device_start_list.first(); ods != NULL; ods = m_device_start_list.next(ods)) - allok &= ods->object()->OnDeviceStart(); - - if (!allok) - m_netlist->xfatalerror("required elements not found\n"); + bool allok = true; + for (device_start_list_t::entry_t *ods = m_device_start_list.first(); ods != NULL; ods = m_device_start_list.next(ods)) + allok &= ods->object()->OnDeviceStart(); - m_setup->resolve_inputs(); + if (!allok) + m_netlist->xfatalerror("required elements not found\n"); save_state(); /* TODO: we have to save the round robin queue as well */ @@ -110,12 +115,13 @@ void netlist_mame_device::device_start() void netlist_mame_device::device_reset() { + LOG_DEV_CALLS(("device_reset\n")); m_netlist->reset(); - m_setup->step_devices_once(); } void netlist_mame_device::device_stop() { + LOG_DEV_CALLS(("device_stop\n")); m_setup->print_stats(); global_free(m_setup); |