diff options
Diffstat (limited to 'src/devices/cpu/i8008/i8008.cpp')
-rw-r--r-- | src/devices/cpu/i8008/i8008.cpp | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/devices/cpu/i8008/i8008.cpp b/src/devices/cpu/i8008/i8008.cpp index 6baa28a766b..9b687eec92a 100644 --- a/src/devices/cpu/i8008/i8008.cpp +++ b/src/devices/cpu/i8008/i8008.cpp @@ -9,6 +9,7 @@ *****************************************************************************/ #include "emu.h" #include "i8008.h" +#include "8008dasm.h" #include "debugger.h" //************************************************************************** @@ -52,7 +53,7 @@ void i8008_device::device_start() { // find address spaces m_program = &space(AS_PROGRAM); - m_direct = &m_program->direct(); + m_direct = m_program->direct<0>(); m_io = &space(AS_IO); // save state @@ -203,34 +204,13 @@ void i8008_device::state_string_export(const device_state_entry &entry, std::str } //------------------------------------------------- -// disasm_min_opcode_bytes - return the length -// of the shortest instruction, in bytes -//------------------------------------------------- - -uint32_t i8008_device::disasm_min_opcode_bytes() const -{ - return 1; -} - -//------------------------------------------------- -// disasm_max_opcode_bytes - return the length -// of the longest instruction, in bytes -//------------------------------------------------- - -uint32_t i8008_device::disasm_max_opcode_bytes() const -{ - return 3; -} - -//------------------------------------------------- -// disasm_disassemble - call the disassembly +// disassemble - call the disassembly // helper function //------------------------------------------------- -offs_t i8008_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) +util::disasm_interface *i8008_device::create_disassembler() { - extern CPU_DISASSEMBLE( i8008 ); - return CPU_DISASSEMBLE_NAME(i8008)(this, stream, pc, oprom, opram, options); + return new i8008_disassembler; } //************************************************************************** |