summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/lh5801
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/lh5801')
-rw-r--r--src/devices/cpu/lh5801/5801dasm.cpp12
-rw-r--r--src/devices/cpu/lh5801/lh5801.cpp4
-rw-r--r--src/devices/cpu/lh5801/lh5801.h2
3 files changed, 4 insertions, 14 deletions
diff --git a/src/devices/cpu/lh5801/5801dasm.cpp b/src/devices/cpu/lh5801/5801dasm.cpp
index 86cb6bf6e06..2cf6f105b8d 100644
--- a/src/devices/cpu/lh5801/5801dasm.cpp
+++ b/src/devices/cpu/lh5801/5801dasm.cpp
@@ -663,7 +663,7 @@ const Entry Entry::table_fd[0x100]={
} // anonymous namespace
-static offs_t internal_disasm_lh5801(cpu_device *device, std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, int options)
+CPU_DISASSEMBLE(lh5801)
{
int pos = 0;
int oper;
@@ -747,13 +747,3 @@ static offs_t internal_disasm_lh5801(cpu_device *device, std::ostream &stream, o
return pos;
}
-
-
-CPU_DISASSEMBLE(lh5801)
-{
- std::ostringstream stream;
- offs_t result = internal_disasm_lh5801(device, stream, pc, oprom, opram, options);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
-}
diff --git a/src/devices/cpu/lh5801/lh5801.cpp b/src/devices/cpu/lh5801/lh5801.cpp
index 67a09e2ae51..80c218d9e47 100644
--- a/src/devices/cpu/lh5801/lh5801.cpp
+++ b/src/devices/cpu/lh5801/lh5801.cpp
@@ -248,8 +248,8 @@ void lh5801_cpu_device::execute_set_input(int irqline, int state)
}
}
-offs_t lh5801_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+offs_t lh5801_cpu_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern CPU_DISASSEMBLE( lh5801 );
- return CPU_DISASSEMBLE_NAME(lh5801)(this, buffer, pc, oprom, opram, options);
+ return CPU_DISASSEMBLE_NAME(lh5801)(this, stream, pc, oprom, opram, options);
}
diff --git a/src/devices/cpu/lh5801/lh5801.h b/src/devices/cpu/lh5801/lh5801.h
index 6df2bb06a37..fba37fed2c7 100644
--- a/src/devices/cpu/lh5801/lh5801.h
+++ b/src/devices/cpu/lh5801/lh5801.h
@@ -95,7 +95,7 @@ protected:
// device_disasm_interface overrides
virtual uint32_t disasm_min_opcode_bytes() const override { return 1; }
virtual uint32_t disasm_max_opcode_bytes() const override { return 5; }
- virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
+ virtual offs_t disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
private:
address_space_config m_program_config;