diff options
Diffstat (limited to 'src/devices/machine/wd11c00_17.cpp')
-rw-r--r-- | src/devices/machine/wd11c00_17.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/machine/wd11c00_17.cpp b/src/devices/machine/wd11c00_17.cpp index ca412f5122e..0f38c32c624 100644 --- a/src/devices/machine/wd11c00_17.cpp +++ b/src/devices/machine/wd11c00_17.cpp @@ -175,7 +175,7 @@ inline void wd11c00_17_device::select() // wd11c00_17_device - constructor //------------------------------------------------- -wd11c00_17_device::wd11c00_17_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +wd11c00_17_device::wd11c00_17_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, WD11C00_17, "Western Digital WD11C00-17", tag, owner, clock, "wd11c00_17", __FILE__), m_out_irq5_cb(*this), m_out_drq3_cb(*this), @@ -245,7 +245,7 @@ READ8_MEMBER( wd11c00_17_device::io_r ) switch (offset) { case 0: // Read Data, Board to Host - if (LOG) logerror("%s WD11C00-17 '%s' Read Data %03x:", machine().describe_context(), tag().c_str(), m_ra); + if (LOG) logerror("%s WD11C00-17 '%s' Read Data %03x:", machine().describe_context(), tag(), m_ra); data = read_data(); if (LOG) logerror("%02x\n", data); break; @@ -276,23 +276,23 @@ WRITE8_MEMBER( wd11c00_17_device::io_w ) switch (offset) { case 0: // Write Data, Host to Board - if (LOG) logerror("%s WD11C00-17 '%s' Write Data %03x:%02x\n", machine().describe_context(), tag().c_str(), m_ra, data); + if (LOG) logerror("%s WD11C00-17 '%s' Write Data %03x:%02x\n", machine().describe_context(), tag(), m_ra, data); write_data(data); break; case 1: // Board Software Reset - if (LOG) logerror("%s WD11C00-17 '%s' Software Reset\n", machine().describe_context(), tag().c_str()); + if (LOG) logerror("%s WD11C00-17 '%s' Software Reset\n", machine().describe_context(), tag()); software_reset(); break; case 2: // Board Select - if (LOG) logerror("%s WD11C00-17 '%s' Select\n", machine().describe_context(), tag().c_str()); + if (LOG) logerror("%s WD11C00-17 '%s' Select\n", machine().describe_context(), tag()); increment_address(); // HACK select(); break; case 3: // Set/Reset DMA, IRQ Masks - if (LOG) logerror("%s WD11C00-17 '%s' Mask IRQ %u DMA %u\n", machine().describe_context(), tag().c_str(), BIT(data, 1), BIT(data, 0)); + if (LOG) logerror("%s WD11C00-17 '%s' Mask IRQ %u DMA %u\n", machine().describe_context(), tag(), BIT(data, 1), BIT(data, 0)); m_mask = data; check_interrupt(); break; @@ -331,7 +331,7 @@ READ8_MEMBER( wd11c00_17_device::read ) switch (offset) { case 0x00: - if (LOG) logerror("%s WD11C00-17 '%s' Read RAM %03x:", machine().describe_context(), tag().c_str(), m_ra); + if (LOG) logerror("%s WD11C00-17 '%s' Read RAM %03x:", machine().describe_context(), tag(), m_ra); data = read_data(); if (LOG) logerror("%02x\n", data); break; @@ -354,7 +354,7 @@ WRITE8_MEMBER( wd11c00_17_device::write ) switch (offset) { case 0x00: - if (LOG) logerror("%s WD11C00-17 '%s' Write RAM %03x:%02x\n", machine().describe_context(), tag().c_str(), m_ra, data); + if (LOG) logerror("%s WD11C00-17 '%s' Write RAM %03x:%02x\n", machine().describe_context(), tag(), m_ra, data); write_data(data); if (m_ra > 0x400) m_ecc_not_0 = 0; // HACK break; @@ -365,7 +365,7 @@ WRITE8_MEMBER( wd11c00_17_device::write ) case 0x60: m_ra = (data & 0x07) << 8; - if (LOG) logerror("%s WD11C00-17 '%s' RA %03x\n", machine().describe_context(), tag().c_str(), m_ra); + if (LOG) logerror("%s WD11C00-17 '%s' RA %03x\n", machine().describe_context(), tag(), m_ra); check_interrupt(); break; } @@ -378,7 +378,7 @@ WRITE8_MEMBER( wd11c00_17_device::write ) WRITE_LINE_MEMBER( wd11c00_17_device::ireq_w ) { - if (LOG) logerror("%s WD11C00-17 '%s' IREQ %u\n", machine().describe_context(), tag().c_str(), state); + if (LOG) logerror("%s WD11C00-17 '%s' IREQ %u\n", machine().describe_context(), tag(), state); if (state) m_status |= STATUS_REQ; else m_status &= ~STATUS_REQ; @@ -407,7 +407,7 @@ WRITE_LINE_MEMBER( wd11c00_17_device::ireq_w ) WRITE_LINE_MEMBER( wd11c00_17_device::io_w ) { - if (LOG) logerror("%s WD11C00-17 '%s' I/O %u\n", machine().describe_context(), tag().c_str(), state); + if (LOG) logerror("%s WD11C00-17 '%s' I/O %u\n", machine().describe_context(), tag(), state); if (state) m_status |= STATUS_I_O; else m_status &= ~STATUS_I_O; } @@ -419,7 +419,7 @@ WRITE_LINE_MEMBER( wd11c00_17_device::io_w ) WRITE_LINE_MEMBER( wd11c00_17_device::cd_w ) { - if (LOG) logerror("%s WD11C00-17 '%s' C/D %u\n", machine().describe_context(), tag().c_str(), state); + if (LOG) logerror("%s WD11C00-17 '%s' C/D %u\n", machine().describe_context(), tag(), state); if (state) m_status |= STATUS_C_D; else m_status &= ~STATUS_C_D; } @@ -431,7 +431,7 @@ WRITE_LINE_MEMBER( wd11c00_17_device::cd_w ) WRITE_LINE_MEMBER( wd11c00_17_device::clct_w ) { - if (LOG) logerror("%s WD11C00-17 '%s' CLCT %u\n", machine().describe_context(), tag().c_str(), state); + if (LOG) logerror("%s WD11C00-17 '%s' CLCT %u\n", machine().describe_context(), tag(), state); if (state) { @@ -447,7 +447,7 @@ WRITE_LINE_MEMBER( wd11c00_17_device::clct_w ) WRITE_LINE_MEMBER( wd11c00_17_device::mode_w ) { - if (LOG) logerror("%s WD11C00-17 '%s' MODE %u\n", machine().describe_context(), tag().c_str(), state); + if (LOG) logerror("%s WD11C00-17 '%s' MODE %u\n", machine().describe_context(), tag(), state); m_mode = state; m_ecc_not_0 = state; // HACK |