summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/se3208
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/se3208')
-rw-r--r--src/devices/cpu/se3208/se3208.cpp4
-rw-r--r--src/devices/cpu/se3208/se3208.h2
-rw-r--r--src/devices/cpu/se3208/se3208dis.cpp12
3 files changed, 4 insertions, 14 deletions
diff --git a/src/devices/cpu/se3208/se3208.cpp b/src/devices/cpu/se3208/se3208.cpp
index 9420e5fabe8..32cbf4d224d 100644
--- a/src/devices/cpu/se3208/se3208.cpp
+++ b/src/devices/cpu/se3208/se3208.cpp
@@ -1838,8 +1838,8 @@ void se3208_device::execute_set_input( int line, int state )
m_IRQ=state;
}
-offs_t se3208_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+offs_t se3208_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern CPU_DISASSEMBLE( se3208 );
- return CPU_DISASSEMBLE_NAME(se3208)(this, buffer, pc, oprom, opram, options);
+ return CPU_DISASSEMBLE_NAME(se3208)(this, stream, pc, oprom, opram, options);
}
diff --git a/src/devices/cpu/se3208/se3208.h b/src/devices/cpu/se3208/se3208.h
index a4fac45e1dd..7f005bec2f3 100644
--- a/src/devices/cpu/se3208/se3208.h
+++ b/src/devices/cpu/se3208/se3208.h
@@ -37,7 +37,7 @@ protected:
// device_disasm_interface overrides
virtual uint32_t disasm_min_opcode_bytes() const override { return 2; }
virtual uint32_t disasm_max_opcode_bytes() const override { return 2; }
- 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;
diff --git a/src/devices/cpu/se3208/se3208dis.cpp b/src/devices/cpu/se3208/se3208dis.cpp
index 093dbc123c3..ca7d3761d61 100644
--- a/src/devices/cpu/se3208/se3208dis.cpp
+++ b/src/devices/cpu/se3208/se3208dis.cpp
@@ -1400,7 +1400,7 @@ static _OP DecodeOp(uint16_t Opcode)
}
-static offs_t internal_disasm_se3208(cpu_device *device, std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, int options)
+CPU_DISASSEMBLE(se3208)
{
uint16_t Opcode;
@@ -1411,13 +1411,3 @@ static offs_t internal_disasm_se3208(cpu_device *device, std::ostream &stream, o
Opcode=oprom[0] | (oprom[1] << 8);
return 2 | ((*DecodeOp(Opcode))(Opcode, stream)) | DASMFLAG_SUPPORTED;
}
-
-
-CPU_DISASSEMBLE(se3208)
-{
- std::ostringstream stream;
- offs_t result = internal_disasm_se3208(device, stream, pc, oprom, opram, options);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
-}