summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms32031/tms32031.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms32031/tms32031.cpp')
-rw-r--r--src/devices/cpu/tms32031/tms32031.cpp38
1 files changed, 8 insertions, 30 deletions
diff --git a/src/devices/cpu/tms32031/tms32031.cpp b/src/devices/cpu/tms32031/tms32031.cpp
index a924791cb71..6f75d3a82cb 100644
--- a/src/devices/cpu/tms32031/tms32031.cpp
+++ b/src/devices/cpu/tms32031/tms32031.cpp
@@ -10,6 +10,7 @@
#include "emu.h"
#include "tms32031.h"
+#include "dis32031.h"
#include "debugger.h"
@@ -328,7 +329,7 @@ inline uint32_t tms3203x_device::ROPCODE(offs_t pc)
if (m_mcbl_mode && pc < 0x1000)
return m_bootrom[pc];
- return m_direct->read_dword(pc << 2);
+ return m_direct->read_dword(pc);
}
@@ -341,7 +342,7 @@ inline uint32_t tms3203x_device::RMEM(offs_t addr)
if (m_mcbl_mode && addr < 0x1000)
return m_bootrom[addr];
- return m_program->read_dword(addr << 2);
+ return m_program->read_dword(addr);
}
@@ -351,7 +352,7 @@ inline uint32_t tms3203x_device::RMEM(offs_t addr)
inline void tms3203x_device::WMEM(offs_t addr, uint32_t data)
{
- m_program->write_dword(addr << 2, data);
+ m_program->write_dword(addr, data);
}
@@ -363,7 +364,7 @@ void tms3203x_device::device_start()
{
// find address spaces
m_program = &space(AS_PROGRAM);
- m_direct = &m_program->direct();
+ m_direct = m_program->direct<-2>();
// resolve devcb handlers
m_xf0_cb.resolve_safe();
@@ -553,36 +554,13 @@ void tms3203x_device::state_string_export(const device_state_entry &entry, std::
//-------------------------------------------------
-// disasm_min_opcode_bytes - return the length
-// of the shortest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t tms3203x_device::disasm_min_opcode_bytes() const
-{
- return 4;
-}
-
-
-//-------------------------------------------------
-// disasm_max_opcode_bytes - return the length
-// of the longest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t tms3203x_device::disasm_max_opcode_bytes() const
-{
- return 4;
-}
-
-
-//-------------------------------------------------
-// disasm_disassemble - call the disassembly
+// disassemble - call the disassembly
// helper function
//-------------------------------------------------
-offs_t tms3203x_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+util::disasm_interface *tms3203x_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( tms3203x );
- return CPU_DISASSEMBLE_NAME(tms3203x)(this, stream, pc, oprom, opram, options);
+ return new tms32031_disassembler;
}