summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mips/mips3dsm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mips/mips3dsm.cpp')
-rw-r--r--src/devices/cpu/mips/mips3dsm.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/devices/cpu/mips/mips3dsm.cpp b/src/devices/cpu/mips/mips3dsm.cpp
index ac490eb94f8..acc7abbcc75 100644
--- a/src/devices/cpu/mips/mips3dsm.cpp
+++ b/src/devices/cpu/mips/mips3dsm.cpp
@@ -536,21 +536,11 @@ unsigned dasmmips3(std::ostream &stream, unsigned pc, uint32_t op)
}
-unsigned dasmmips3(char *buffer, unsigned pc, uint32_t op)
-{
- std::ostringstream stream;
- unsigned result = dasmmips3(stream, pc, op);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
-}
-
-
CPU_DISASSEMBLE( mips3be )
{
uint32_t op = *(uint32_t *)oprom;
op = big_endianize_int32(op);
- return dasmmips3(buffer, pc, op);
+ return dasmmips3(stream, pc, op);
}
@@ -558,5 +548,5 @@ CPU_DISASSEMBLE( mips3le )
{
uint32_t op = *(uint32_t *)oprom;
op = little_endianize_int32(op);
- return dasmmips3(buffer, pc, op);
+ return dasmmips3(stream, pc, op);
}