summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms57002/tms57002.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms57002/tms57002.cpp')
-rw-r--r--src/devices/cpu/tms57002/tms57002.cpp25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/devices/cpu/tms57002/tms57002.cpp b/src/devices/cpu/tms57002/tms57002.cpp
index 4b88669298b..f98e0497acf 100644
--- a/src/devices/cpu/tms57002/tms57002.cpp
+++ b/src/devices/cpu/tms57002/tms57002.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "tms57002.h"
#include "debugger.h"
+#include "57002dsm.h"
DEFINE_DEVICE_TYPE(TMS57002, tms57002_device, "tms57002", "TMS57002")
@@ -29,6 +30,10 @@ tms57002_device::tms57002_device(const machine_config &mconfig, const char *tag,
{
}
+util::disasm_interface *tms57002_device::create_disassembler()
+{
+ return new tms57002_disassembler;
+}
WRITE_LINE_MEMBER(tms57002_device::pload_w)
{
@@ -103,7 +108,7 @@ WRITE8_MEMBER(tms57002_device::data_w)
sti = (sti & ~SU_MASK) | SU_PRG;
break;
case SU_PRG:
- program->write_dword(pc++ << 2, val);
+ program->write_dword(pc++, val);
break;
}
}
@@ -684,7 +689,7 @@ int tms57002_device::decode_get_pc()
for(;;) {
short ipc;
- uint32_t opcode = program->read_dword(adr << 2);
+ uint32_t opcode = program->read_dword(adr);
cs.inc = 0;
@@ -892,22 +897,6 @@ uint32_t tms57002_device::execute_input_lines() const
return 0;
}
-uint32_t tms57002_device::disasm_min_opcode_bytes() const
-{
- return 4;
-}
-
-uint32_t tms57002_device::disasm_max_opcode_bytes() const
-{
- return 4;
-}
-
-offs_t tms57002_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
-{
- extern CPU_DISASSEMBLE( tms57002 );
- return CPU_DISASSEMBLE_NAME(tms57002)(this, stream, pc, oprom, opram, options);
-}
-
device_memory_interface::space_config_vector tms57002_device::memory_space_config() const
{
return space_config_vector {