diff options
Diffstat (limited to 'src/devices/cpu/cubeqcpu/cubeqcpu.cpp')
-rw-r--r-- | src/devices/cpu/cubeqcpu/cubeqcpu.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/cpu/cubeqcpu/cubeqcpu.cpp b/src/devices/cpu/cubeqcpu/cubeqcpu.cpp index ce3a3166469..a657a23680e 100644 --- a/src/devices/cpu/cubeqcpu/cubeqcpu.cpp +++ b/src/devices/cpu/cubeqcpu/cubeqcpu.cpp @@ -75,10 +75,11 @@ const device_type CQUESTROT = &device_creator<cquestrot_cpu_device>; const device_type CQUESTLIN = &device_creator<cquestlin_cpu_device>; -cquestsnd_cpu_device::cquestsnd_cpu_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +cquestsnd_cpu_device::cquestsnd_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, CQUESTSND, "Cube Quest Sound CPU", tag, owner, clock, "cquestsnd", __FILE__) , m_program_config("program", ENDIANNESS_BIG, 64, 8, -3) , m_dac_w(*this) + , m_sound_region_tag(nullptr) { } @@ -90,7 +91,7 @@ offs_t cquestsnd_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const U } -cquestrot_cpu_device::cquestrot_cpu_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +cquestrot_cpu_device::cquestrot_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, CQUESTROT, "Cube Quest Rotate CPU", tag, owner, clock, "cquestrot", __FILE__) , m_program_config("program", ENDIANNESS_BIG, 64, 9, -3) , m_linedata_w(*this) @@ -111,7 +112,7 @@ offs_t cquestrot_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const U } -cquestlin_cpu_device::cquestlin_cpu_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) +cquestlin_cpu_device::cquestlin_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, CQUESTLIN, "Cube Quest Line CPU", tag, owner, clock, "cquestlin", __FILE__) , m_program_config("program", ENDIANNESS_BIG, 64, 8, -3) , m_linedata_r(*this) @@ -167,7 +168,7 @@ READ16_MEMBER( cquestrot_cpu_device::rotram_r ) void cquestsnd_cpu_device::device_start() { m_dac_w.resolve_safe(); - assert(!m_sound_region_tag.empty()); + assert(m_sound_region_tag != nullptr); m_sound_data = (UINT16*)machine().root_device().memregion(m_sound_region_tag)->base(); m_program = &space(AS_PROGRAM); |