diff options
Diffstat (limited to 'src/devices/cpu/dsp56k/dsp56k.cpp')
-rw-r--r-- | src/devices/cpu/dsp56k/dsp56k.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/cpu/dsp56k/dsp56k.cpp b/src/devices/cpu/dsp56k/dsp56k.cpp index c84948701ef..132ccb55c98 100644 --- a/src/devices/cpu/dsp56k/dsp56k.cpp +++ b/src/devices/cpu/dsp56k/dsp56k.cpp @@ -33,6 +33,7 @@ #include "emu.h" #include "dsp56k.h" +#include "dsp56dsm.h" #include "opcode.h" @@ -289,7 +290,7 @@ void dsp56k_device::device_start() save_item(NAME(m_dsp56k_core.peripheral_ram)); m_dsp56k_core.program = &space(AS_PROGRAM); - m_dsp56k_core.direct = &m_dsp56k_core.program->direct(); + m_dsp56k_core.direct = m_dsp56k_core.program->direct<-1>(); m_dsp56k_core.data = &space(AS_DATA); state_add(DSP56K_PC, "PC", m_dsp56k_core.PCU.pc).formatstr("%04X"); @@ -463,9 +464,9 @@ static size_t execute_one_new(dsp56k_core* cpustate) cpustate->ppc = PC; debugger_instruction_hook(cpustate->device, PC); - cpustate->op = ROPCODE(ADDRESS(PC)); - uint16_t w0 = ROPCODE(ADDRESS(PC)); - uint16_t w1 = ROPCODE(ADDRESS(PC) + ADDRESS(1)); + cpustate->op = ROPCODE(PC); + uint16_t w0 = ROPCODE(PC); + uint16_t w1 = ROPCODE(PC + 1); Opcode op(w0, w1); op.evaluate(cpustate); @@ -503,9 +504,9 @@ void dsp56k_device::execute_run() } -offs_t dsp56k_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) +util::disasm_interface *dsp56k_device::create_disassembler() { - return CPU_DISASSEMBLE_NAME(dsp56k)(this, stream, pc, oprom, opram, options); + return new dsp56k_disassembler; } } // namespace DSP56K |