diff options
Diffstat (limited to 'src/devices/cpu/dsp56156/dsp56156.cpp')
-rw-r--r-- | src/devices/cpu/dsp56156/dsp56156.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/devices/cpu/dsp56156/dsp56156.cpp b/src/devices/cpu/dsp56156/dsp56156.cpp index 38ec2039bf5..1ead0838621 100644 --- a/src/devices/cpu/dsp56156/dsp56156.cpp +++ b/src/devices/cpu/dsp56156/dsp56156.cpp @@ -37,7 +37,7 @@ #include "opcode.h" -#include "debugger.h" +#include "debug/debugcpu.h" #include "dsp56def.h" @@ -127,6 +127,7 @@ dsp56156_device::dsp56156_device(const machine_config &mconfig, const char *tag, , m_program_config("program", ENDIANNESS_LITTLE, 16, 16, -1, address_map_constructor(FUNC(dsp56156_device::dsp56156_program_map), this)) , m_data_config("data", ENDIANNESS_LITTLE, 16, 16, -1, address_map_constructor(FUNC(dsp56156_device::dsp56156_x_data_map), this)) , m_program_ram(*this, "dsk56156_program_ram") + , portC_cb(*this) { } @@ -458,25 +459,6 @@ void dsp56156_device::device_reset() /*************************************************************************** CORE EXECUTION LOOP ***************************************************************************/ -// Execute a single opcode and return how many cycles it took. -static size_t execute_one_new(dsp56156_core* cpustate) -{ - // For MAME - cpustate->ppc = PC; - if (cpustate->device->machine().debug_flags & DEBUG_FLAG_CALL_HOOK) // FIXME: if this was a member, the helper would work - cpustate->device->debug()->instruction_hook(PC); - - cpustate->op = ROPCODE(PC); - uint16_t w0 = ROPCODE(PC); - uint16_t w1 = ROPCODE(PC + 1); - - Opcode op(w0, w1); - op.evaluate(cpustate); - PC += op.evalSize(); // Special size function needed to handle jmps, etc. - - // TODO: Currently all operations take up 4 cycles (inst->cycles()). - return 4; -} void dsp56156_device::execute_run() { @@ -500,7 +482,6 @@ void dsp56156_device::execute_run() while(m_core.icount > 0) { execute_one(&m_core); - if (0) m_core.icount -= execute_one_new(&m_core); pcu_service_interrupts(&m_core); // TODO: Is it incorrect to service after each instruction? } } |