summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mips/r3kdasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mips/r3kdasm.cpp')
-rw-r--r--src/devices/cpu/mips/r3kdasm.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/devices/cpu/mips/r3kdasm.cpp b/src/devices/cpu/mips/r3kdasm.cpp
index 71c7fe2dd35..1e8a2d7a16d 100644
--- a/src/devices/cpu/mips/r3kdasm.cpp
+++ b/src/devices/cpu/mips/r3kdasm.cpp
@@ -378,21 +378,11 @@ static unsigned dasmr3k(std::ostream &stream, unsigned pc, uint32_t op)
}
-static unsigned dasmr3k(char *buffer, unsigned pc, uint32_t op)
-{
- std::ostringstream stream;
- unsigned result = dasmr3k(stream, pc, op);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
-}
-
-
CPU_DISASSEMBLE( r3000be )
{
uint32_t op = *(uint32_t *)oprom;
op = big_endianize_int32(op);
- return dasmr3k(buffer, pc, op);
+ return dasmr3k(stream, pc, op);
}
@@ -400,5 +390,5 @@ CPU_DISASSEMBLE( r3000le )
{
uint32_t op = *(uint32_t *)oprom;
op = little_endianize_int32(op);
- return dasmr3k(buffer, pc, op);
+ return dasmr3k(stream, pc, op);
}