diff options
Diffstat (limited to 'src/devices/machine/74123.cpp')
-rw-r--r-- | src/devices/machine/74123.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/machine/74123.cpp b/src/devices/machine/74123.cpp index 7fde031e7aa..5efb34ec085 100644 --- a/src/devices/machine/74123.cpp +++ b/src/devices/machine/74123.cpp @@ -12,9 +12,8 @@ #include "machine/74123.h" #include "machine/rescap.h" - -#define LOG (0) - +//#define VERBOSE 1 +#include "logmacro.h" //************************************************************************** @@ -22,14 +21,15 @@ //************************************************************************** // device type definition -const device_type TTL74123 = device_creator<ttl74123_device>; +DEFINE_DEVICE_TYPE(TTL74123, ttl74123_device, "ttl74123", "74123 TTL") //------------------------------------------------- // ttl74123_device - constructor //------------------------------------------------- ttl74123_device::ttl74123_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, TTL74123, "74123 TTL", tag, owner, clock, "ttl74123", __FILE__), m_timer(nullptr), + : device_t(mconfig, TTL74123, tag, owner, clock), + m_timer(nullptr), m_connection_type(TTL74123_NOT_GROUNDED_NO_DIODE), m_res(1.0), m_cap(1.0), @@ -135,7 +135,7 @@ void ttl74123_device::set_output() machine().scheduler().timer_set( attotime::zero, timer_expired_delegate(FUNC(ttl74123_device::output_callback ),this), output); - if (LOG) logerror("74123 %s: Output: %d\n", tag(), output); + LOG("74123: Output: %d\n", output); } @@ -167,11 +167,11 @@ void ttl74123_device::start_pulse() { m_timer->adjust(duration); - if (LOG) logerror("74123 %s: Retriggering pulse. Duration: %f\n", tag(), duration.as_double()); + LOG("74123: Retriggering pulse. Duration: %f\n", duration.as_double()); } else { - if (LOG) logerror("74123 %s: Retriggering failed.\n", tag()); + LOG("74123: Retriggering failed.\n"); } } else @@ -181,7 +181,7 @@ void ttl74123_device::start_pulse() set_output(); - if (LOG) logerror("74123 %s: Starting pulse. Duration: %f\n", tag(), duration.as_double()); + LOG("74123: Starting pulse. Duration: %f\n", duration.as_double()); } } @@ -233,7 +233,7 @@ WRITE8_MEMBER( ttl74123_device::clear_w) { m_timer->adjust(attotime::zero); - if (LOG) logerror("74123 #%s: Cleared\n", tag() ); + LOG("74123: Cleared\n"); } m_clear = data; } |