diff options
author | 2016-11-21 11:30:06 +1100 | |
---|---|---|
committer | 2016-11-21 11:30:06 +1100 | |
commit | b8b0774997e7a898c53479b1d7e4860a0d4dc1e8 (patch) | |
tree | 07e199d26412bf36d0dc75e0645510c20ac691f2 /src/devices/cpu/sh2/sh2dasm.cpp | |
parent | 9b197f3d5556e1e2808fe82fc970a04a4e84a034 (diff) | |
parent | 68a115369194cb7b859ce53ed2d9a201278d3430 (diff) |
Merge pull request #1317 from npwoods/disasm_stdstring
Refactored device_disasm_interface::disassemble() and dasm_override_delegate to take string buffers as std::string
Diffstat (limited to 'src/devices/cpu/sh2/sh2dasm.cpp')
-rw-r--r-- | src/devices/cpu/sh2/sh2dasm.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/cpu/sh2/sh2dasm.cpp b/src/devices/cpu/sh2/sh2dasm.cpp index a484c2a9cb4..ef823ee28a5 100644 --- a/src/devices/cpu/sh2/sh2dasm.cpp +++ b/src/devices/cpu/sh2/sh2dasm.cpp @@ -606,9 +606,5 @@ unsigned DasmSH2(std::ostream &stream, unsigned pc, uint16_t opcode) CPU_DISASSEMBLE(sh2) { - std::ostringstream stream; - offs_t result = DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]); - std::string stream_str = stream.str(); - strcpy(buffer, stream_str.c_str()); - return result; + return DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]); } |