diff options
Diffstat (limited to 'src/devices/cpu/tms34010/tms34010.cpp')
-rw-r--r-- | src/devices/cpu/tms34010/tms34010.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/cpu/tms34010/tms34010.cpp b/src/devices/cpu/tms34010/tms34010.cpp index 8be234dbbdd..1ad1879c3b0 100644 --- a/src/devices/cpu/tms34010/tms34010.cpp +++ b/src/devices/cpu/tms34010/tms34010.cpp @@ -33,7 +33,7 @@ const device_type TMS34020 = &device_creator<tms34020_device>; GLOBAL VARIABLES ***************************************************************************/ -tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type, const char *name, std::string tag, device_t *owner, UINT32 clock, const char *shortname) +tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, __FILE__) , device_video_interface(mconfig, *this) , m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3), m_pc(0), m_ppc(0), m_st(0), m_pixel_write(nullptr), m_pixel_read(nullptr), m_raster_op(nullptr), m_pixel_op(nullptr), m_pixel_op_timing(0), m_convsp(0), m_convdp(0), m_convmp(0), m_gfxcycles(0), m_pixelshift(0), m_is_34020(0), m_reset_deferred(false) @@ -45,14 +45,14 @@ tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type } -tms34010_device::tms34010_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +tms34010_device::tms34010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : tms340x0_device(mconfig, TMS34010, "TMS34010", tag, owner, clock, "tms34010") { m_is_34020 = 0; } -tms34020_device::tms34020_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +tms34020_device::tms34020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : tms340x0_device(mconfig, TMS34020, "TMS34020", tag, owner, clock, "tms34020") { m_is_34020 = 1; @@ -487,7 +487,7 @@ void tms340x0_device::check_interrupt() /* check for NMI first */ if (IOREG(REG_HSTCTLH) & 0x0100) { - LOG(("TMS34010 '%s' takes NMI\n", tag().c_str())); + LOG(("TMS34010 '%s' takes NMI\n", tag())); /* ack the NMI */ IOREG(REG_HSTCTLH) &= ~0x0100; @@ -514,28 +514,28 @@ void tms340x0_device::check_interrupt() /* host interrupt */ if (irq & TMS34010_HI) { - LOG(("TMS34010 '%s' takes HI\n", tag().c_str())); + LOG(("TMS34010 '%s' takes HI\n", tag())); vector = 0xfffffec0; } /* display interrupt */ else if (irq & TMS34010_DI) { - LOG(("TMS34010 '%s' takes DI\n", tag().c_str())); + LOG(("TMS34010 '%s' takes DI\n", tag())); vector = 0xfffffea0; } /* window violation interrupt */ else if (irq & TMS34010_WV) { - LOG(("TMS34010 '%s' takes WV\n", tag().c_str())); + LOG(("TMS34010 '%s' takes WV\n", tag())); vector = 0xfffffe80; } /* external 1 interrupt */ else if (irq & TMS34010_INT1) { - LOG(("TMS34010 '%s' takes INT1\n", tag().c_str())); + LOG(("TMS34010 '%s' takes INT1\n", tag())); vector = 0xffffffc0; irqline = 0; } @@ -543,7 +543,7 @@ void tms340x0_device::check_interrupt() /* external 2 interrupt */ else if (irq & TMS34010_INT2) { - LOG(("TMS34010 '%s' takes INT2\n", tag().c_str())); + LOG(("TMS34010 '%s' takes INT2\n", tag())); vector = 0xffffffa0; irqline = 1; } @@ -664,7 +664,7 @@ void tms340x0_device::device_reset() void tms340x0_device::execute_set_input(int inputnum, int state) { - LOG(("TMS34010 '%s' set irq line %d state %d\n", tag().c_str(), inputnum, state)); + LOG(("TMS34010 '%s' set irq line %d state %d\n", tag(), inputnum, state)); /* set the pending interrupt */ switch (inputnum) @@ -697,7 +697,7 @@ TIMER_CALLBACK_MEMBER( tms340x0_device::internal_interrupt_callback ) /* call through to the CPU to generate the int */ IOREG(REG_INTPEND) |= type; - LOG(("TMS34010 '%s' set internal interrupt $%04x\n", tag().c_str(), type)); + LOG(("TMS34010 '%s' set internal interrupt $%04x\n", tag(), type)); /* generate triggers so that spin loops can key off them */ signal_interrupt_trigger(); |