summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/i86/i86.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/i86/i86.cpp')
-rw-r--r--src/devices/cpu/i86/i86.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/devices/cpu/i86/i86.cpp b/src/devices/cpu/i86/i86.cpp
index 799ab25685d..1bcc2bff719 100644
--- a/src/devices/cpu/i86/i86.cpp
+++ b/src/devices/cpu/i86/i86.cpp
@@ -508,14 +508,10 @@ void i8086_common_cpu_device::execute_set_input( int inptnum, int state )
}
}
-offs_t i8086_common_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+offs_t i8086_common_cpu_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern int i386_dasm_one(std::ostream &stream, offs_t eip, const uint8_t *oprom, int mode);
- std::ostringstream stream;
- offs_t result = i386_dasm_one(stream, pc, oprom, 1);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
+ return i386_dasm_one(stream, pc, oprom, 1);
}
uint8_t i8086_common_cpu_device::read_port_byte(uint16_t port)