summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-29 19:30:05 +0200
committer couriersud <couriersud@arcor.de>2016-06-07 21:41:54 +0200
commit3d3f5761f0b0419581762f72ea0984e047d3e55c (patch)
tree9330381da7fef4e9c9013809bba28f2a272da505 /src/devices/machine
parentb27790890530b658e178846e7da01045185f0fce (diff)
- Added constructors to prepare to move terminal setup into constructor.
- Reworked twoterm setup. Fixed some timebombs along the way. - Fix r2r dac. Remove dead code. - analog_outputs now created in constructor. - moved analog_input creation into constructor. - moved logic output creation to constructor. - moved all logic inputs into constructor. - Completely removed init_object. Finally. [Couriersud]
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/netlist.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/devices/machine/netlist.h b/src/devices/machine/netlist.h
index 5340c792573..c4b64204390 100644
--- a/src/devices/machine/netlist.h
+++ b/src/devices/machine/netlist.h
@@ -504,9 +504,11 @@ class NETLIB_NAME(analog_callback) : public netlist::device_t
{
public:
NETLIB_NAME(analog_callback)(netlist::netlist_t &anetlist, const pstring &name)
- : device_t(anetlist, name), m_cpu_device(nullptr), m_last(0)
+ : device_t(anetlist, name)
+ , m_in(*this, "IN")
+ , m_cpu_device(nullptr)
+ , m_last(0)
{
- enregister("IN", m_in);
m_cpu_device = downcast<netlist_mame_cpu_device_t *>(&downcast<netlist_mame_t &>(netlist()).parent());
save(NLNAME(m_last));
}
@@ -555,8 +557,8 @@ public:
, m_channel(*this, "CHAN", 0)
, m_mult(*this, "MULT", 1000.0)
, m_offset(*this, "OFFSET", 0.0)
+ , m_in(*this, "IN")
{
- enregister("IN", m_in);
m_sample = netlist::netlist_time::from_hz(1); //sufficiently big enough
save(NAME(m_last_buffer));
}
@@ -624,11 +626,11 @@ class NETLIB_NAME(sound_in) : public netlist::device_t
{
public:
NETLIB_NAME(sound_in)(netlist::netlist_t &anetlist, const pstring &name)
- : netlist::device_t(anetlist, name)
+ : netlist::device_t(anetlist, name)
+ , m_feedback(*this, "FB") // clock part
+ , m_Q(*this, "Q")
{
- // clock part
- enregister("Q", m_Q);
- enregister("FB", m_feedback);
+
connect_late(m_feedback, m_Q);
m_inc = netlist::netlist_time::from_nsec(1);