diff options
Diffstat (limited to 'src/devices/cpu/melps4/melps4.cpp')
-rw-r--r-- | src/devices/cpu/melps4/melps4.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/devices/cpu/melps4/melps4.cpp b/src/devices/cpu/melps4/melps4.cpp index bf386f1e30d..a749f4bc5c6 100644 --- a/src/devices/cpu/melps4/melps4.cpp +++ b/src/devices/cpu/melps4/melps4.cpp @@ -39,6 +39,7 @@ #include "emu.h" #include "melps4.h" +#include "melps4d.h" #include "debugger.h" @@ -453,7 +454,7 @@ void melps4_cpu_device::execute_run() // fetch next opcode debugger_instruction_hook(this, m_pc); m_icount--; - m_op = m_program->read_word(m_pc << 1) & 0x1ff; + m_op = m_program->read_word(m_pc) & 0x1ff; m_bitmask = 1 << (m_op & 3); m_pc = (m_pc & ~0x7f) | ((m_pc + 1) & 0x7f); // stays in the same page @@ -471,3 +472,8 @@ void melps4_cpu_device::execute_run() execute_one(); } } + +util::disasm_interface *melps4_cpu_device::create_disassembler() +{ + return new melps4_disassembler; +} |