diff options
Diffstat (limited to 'src/devices/cpu/asap/asap.cpp')
-rw-r--r-- | src/devices/cpu/asap/asap.cpp | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/src/devices/cpu/asap/asap.cpp b/src/devices/cpu/asap/asap.cpp index e808f3fbb6c..c5d91084a83 100644 --- a/src/devices/cpu/asap/asap.cpp +++ b/src/devices/cpu/asap/asap.cpp @@ -13,6 +13,7 @@ #include "emu.h" #include "asap.h" +#include "asapdasm.h" #include "debugger.h" @@ -183,7 +184,7 @@ void asap_device::device_start() { // get our address spaces m_program = &space(AS_PROGRAM); - m_direct = &m_program->direct(); + m_direct = m_program->direct<0>(); // register our state for the debugger state_add(STATE_GENPC, "GENPC", m_pc).noshow(); @@ -300,40 +301,16 @@ void asap_device::state_string_export(const device_state_entry &entry, std::stri //------------------------------------------------- -// disasm_min_opcode_bytes - return the length -// of the shortest instruction, in bytes -//------------------------------------------------- - -uint32_t asap_device::disasm_min_opcode_bytes() const -{ - return 4; -} - - -//------------------------------------------------- -// disasm_max_opcode_bytes - return the length -// of the longest instruction, in bytes -//------------------------------------------------- - -uint32_t asap_device::disasm_max_opcode_bytes() const -{ - return 12; -} - - -//------------------------------------------------- -// disasm_disassemble - call the disassembly +// disassemble - call the disassembly // helper function //------------------------------------------------- -offs_t asap_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) +util::disasm_interface *asap_device::create_disassembler() { - extern CPU_DISASSEMBLE( asap ); - return CPU_DISASSEMBLE_NAME(asap)(this, stream, pc, oprom, opram, options); + return new asap_disassembler; } - //************************************************************************** // INLINE HELPERS //************************************************************************** |