diff options
Diffstat (limited to 'src/devices/cpu/hmcs40/hmcs40d.cpp')
-rw-r--r-- | src/devices/cpu/hmcs40/hmcs40d.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/devices/cpu/hmcs40/hmcs40d.cpp b/src/devices/cpu/hmcs40/hmcs40d.cpp index b322b4c3208..867972d82db 100644 --- a/src/devices/cpu/hmcs40/hmcs40d.cpp +++ b/src/devices/cpu/hmcs40/hmcs40d.cpp @@ -184,7 +184,7 @@ static const uint8_t hmcs40_mnemonic[0x400] = -static offs_t internal_disasm_hmcs40(cpu_device *device, std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, int options) +CPU_DISASSEMBLE(hmcs40) { uint16_t op = (oprom[0] | oprom[1] << 8) & 0x3ff; uint8_t instr = hmcs40_mnemonic[op]; @@ -229,13 +229,3 @@ static offs_t internal_disasm_hmcs40(cpu_device *device, std::ostream &stream, o int pos = s_next_pc[pc & 0x3f] & DASMFLAG_LENGTHMASK; return pos | s_flags[instr] | DASMFLAG_SUPPORTED; } - - -CPU_DISASSEMBLE(hmcs40) -{ - std::ostringstream stream; - offs_t result = internal_disasm_hmcs40(device, stream, pc, oprom, opram, options); - std::string stream_str = stream.str(); - strcpy(buffer, stream_str.c_str()); - return result; -} |