diff options
Diffstat (limited to 'src/devices/machine/im6402.cpp')
-rw-r--r-- | src/devices/machine/im6402.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/machine/im6402.cpp b/src/devices/machine/im6402.cpp index 82c9bfe794d..f713a048517 100644 --- a/src/devices/machine/im6402.cpp +++ b/src/devices/machine/im6402.cpp @@ -75,7 +75,7 @@ inline void im6402_device::set_tre(int state) // im6402_device - constructor //------------------------------------------------- -im6402_device::im6402_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) : +im6402_device::im6402_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, IM6402, "Intersil IM6402", tag, owner, clock, "im6402", __FILE__), device_serial_interface(mconfig, *this), m_write_tro(*this), @@ -184,7 +184,7 @@ void im6402_device::tra_complete() { if (!m_tbre) { - if (LOG) logerror("IM6402 '%s' Transmit Data %02x\n", tag().c_str(), m_tbr); + if (LOG) logerror("IM6402 '%s' Transmit Data %02x\n", tag(), m_tbr); transmit_register_setup(m_tbr); @@ -212,7 +212,7 @@ void im6402_device::rcv_complete() receive_register_extract(); m_rbr = get_received_char(); - if (LOG) logerror("IM6402 '%s' Receive Data %02x\n", tag().c_str(), m_rbr); + if (LOG) logerror("IM6402 '%s' Receive Data %02x\n", tag(), m_rbr); if (m_dr) { @@ -229,13 +229,13 @@ void im6402_device::rcv_complete() WRITE8_MEMBER( im6402_device::write ) { - if (LOG) logerror("IM6402 '%s' Transmit Buffer Register %02x\n", tag().c_str(), data); + if (LOG) logerror("IM6402 '%s' Transmit Buffer Register %02x\n", tag(), data); m_tbr = data; if (is_transmit_register_empty()) { - if (LOG) logerror("IM6402 '%s' Transmit Data %02x\n", tag().c_str(), m_tbr); + if (LOG) logerror("IM6402 '%s' Transmit Data %02x\n", tag(), m_tbr); transmit_register_setup(m_tbr); @@ -329,7 +329,7 @@ WRITE_LINE_MEMBER( im6402_device::crl_w ) { if (state) { - if (LOG) logerror("IM6402 '%s' Control Register Load\n", tag().c_str()); + if (LOG) logerror("IM6402 '%s' Control Register Load\n", tag()); int data_bit_count = 5 + ((m_cls2 << 1) | m_cls1); stop_bits_t stop_bits = (m_sbs ? ((data_bit_count == 5) ? STOP_BITS_1_5 : STOP_BITS_2) : STOP_BITS_1); @@ -350,7 +350,7 @@ WRITE_LINE_MEMBER( im6402_device::crl_w ) WRITE_LINE_MEMBER( im6402_device::pi_w ) { - if (LOG) logerror("IM6402 '%s' Parity Inhibit %u\n", tag().c_str(), state); + if (LOG) logerror("IM6402 '%s' Parity Inhibit %u\n", tag(), state); m_pi = state; } @@ -362,7 +362,7 @@ WRITE_LINE_MEMBER( im6402_device::pi_w ) WRITE_LINE_MEMBER( im6402_device::sbs_w ) { - if (LOG) logerror("IM6402 '%s' Stop Bit Select %u\n", tag().c_str(), state); + if (LOG) logerror("IM6402 '%s' Stop Bit Select %u\n", tag(), state); m_sbs = state; } @@ -374,7 +374,7 @@ WRITE_LINE_MEMBER( im6402_device::sbs_w ) WRITE_LINE_MEMBER( im6402_device::cls1_w ) { - if (LOG) logerror("IM6402 '%s' Character Length Select 1 %u\n", tag().c_str(), state); + if (LOG) logerror("IM6402 '%s' Character Length Select 1 %u\n", tag(), state); m_cls1 = state; } @@ -386,7 +386,7 @@ WRITE_LINE_MEMBER( im6402_device::cls1_w ) WRITE_LINE_MEMBER( im6402_device::cls2_w ) { - if (LOG) logerror("IM6402 '%s' Character Length Select 2 %u\n", tag().c_str(), state); + if (LOG) logerror("IM6402 '%s' Character Length Select 2 %u\n", tag(), state); m_cls2 = state; } @@ -398,7 +398,7 @@ WRITE_LINE_MEMBER( im6402_device::cls2_w ) WRITE_LINE_MEMBER( im6402_device::epe_w ) { - if (LOG) logerror("IM6402 '%s' Even Parity Enable %u\n", tag().c_str(), state); + if (LOG) logerror("IM6402 '%s' Even Parity Enable %u\n", tag(), state); m_epe = state; } |