summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/psx/psxdasm.cpp
diff options
context:
space:
mode:
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 );
}