diff options
author | 2013-12-16 12:55:46 +0000 | |
---|---|---|
committer | 2013-12-16 12:55:46 +0000 | |
commit | 5777263839b59276aff2aad39885475fba1d6c18 (patch) | |
tree | 05caaddb53a75f6172f84c9b255a4721d3713af4 /src/emu/machine/netlist.c | |
parent | 1ffc016289b3db44af6bcaab3d4eb80575c06036 (diff) |
Netlist:
- separated mame specific code into netlist.h
- Diode model now uses a fast exp function which is approx. 3x faster than build-in at the expense of reduced accuracy. We are emulating real device with tolerances, so this is not an issue.
Diffstat (limited to 'src/emu/machine/netlist.c')
-rw-r--r-- | src/emu/machine/netlist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/emu/machine/netlist.c b/src/emu/machine/netlist.c index 55fbb9782b5..94024f86355 100644 --- a/src/emu/machine/netlist.c +++ b/src/emu/machine/netlist.c @@ -44,6 +44,7 @@ ****************************************************************************/ +#include "emu.h" #include "netlist.h" #include "netlist/nl_base.h" #include "netlist/nl_setup.h" @@ -78,12 +79,15 @@ void netlist_mame_device::device_config_complete() void netlist_mame_device::device_start() { - //double dt = clocks_to_attotime(1).as_double(); - m_netlist = global_alloc_clear(netlist_t(*this)); + m_netlist = global_alloc_clear(netlist_mame_t(*this)); m_netlist->set_clock_freq(this->clock()); m_setup = global_alloc_clear(netlist_setup_t(*m_netlist)); + // register additional devices + + m_setup->factory().register_device<nld_analog_callback>( "NETDEV_CALLBACK", "nld_analog_callback"); + m_setup_func(*m_setup); m_setup->start_devices(); |