diff options
author | 2016-10-27 08:06:22 -0400 | |
---|---|---|
committer | 2016-10-27 08:06:22 -0400 | |
commit | 19fa0061266198940d7f5dc68ae3181ed57fd837 (patch) | |
tree | 2e96396f1235f472a3c57d6c477505220b29c7c6 /src/devices/cpu/mcs96/mcs96.h | |
parent | 0d87ff49b17df9995d4556aaea9c5680b446604f (diff) |
Changed the mcs96 disassembler to use 'std::ostream &' internally
Diffstat (limited to 'src/devices/cpu/mcs96/mcs96.h')
-rw-r--r-- | src/devices/cpu/mcs96/mcs96.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/devices/cpu/mcs96/mcs96.h b/src/devices/cpu/mcs96/mcs96.h index 2f372cdab5b..26c7886a070 100644 --- a/src/devices/cpu/mcs96/mcs96.h +++ b/src/devices/cpu/mcs96/mcs96.h @@ -90,7 +90,14 @@ protected: // device_disasm_interface overrides virtual uint32_t disasm_min_opcode_bytes() const override; virtual uint32_t disasm_max_opcode_bytes() const override; - virtual offs_t disasm_generic(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options, const disasm_entry *entries); + virtual offs_t disasm_generic(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options, const disasm_entry *entries) + { + std::ostringstream stream; + offs_t result = disasm_generic(stream, pc, oprom, opram, options, entries); + std::string stream_str = stream.str(); + strcpy(buffer, stream_str.c_str()); + return result; + } address_space_config program_config; address_space *program; @@ -245,6 +252,9 @@ protected: O(fetch_noirq); #undef O + +private: + offs_t disasm_generic(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options, const disasm_entry *entries); }; enum { |