summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/psx/psxdasm.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-11-20 08:49:30 -0500
committer Nathan Woods <npwoods@mess.org>2016-11-20 08:49:30 -0500
commita29891d2e5b750e47a1237929c42fc2afdd8f094 (patch)
treea601af0a86b6076311a7af4494a7b66bb8d24667 /src/devices/cpu/psx/psxdasm.cpp
parent5eefcfdb684b94cbe41d41a7dcfd8b712bf86c6a (diff)
Changed disassembler infrastructure to not use char buffers internally
Diffstat (limited to 'src/devices/cpu/psx/psxdasm.cpp')
-rw-r--r--src/devices/cpu/psx/psxdasm.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/devices/cpu/psx/psxdasm.cpp b/src/devices/cpu/psx/psxdasm.cpp
index e8dd0645577..7d65b097a86 100644
--- a/src/devices/cpu/psx/psxdasm.cpp
+++ b/src/devices/cpu/psx/psxdasm.cpp
@@ -683,16 +683,8 @@ unsigned DasmPSXCPU( psxcpu_state *state, std::ostream &stream, uint32_t pc, con
return ( opram - oldopram ) | flags | DASMFLAG_SUPPORTED;
}
-unsigned DasmPSXCPU(psxcpu_state *state, char *buffer, uint32_t pc, const uint8_t *opram)
-{
- std::ostringstream stream;
- unsigned result = DasmPSXCPU(state, stream, pc, opram);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
-}
CPU_DISASSEMBLE( psxcpu_generic )
{
- return DasmPSXCPU( nullptr, buffer, pc, opram );
+ return DasmPSXCPU( nullptr, stream, pc, opram );
}