summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms9900/tms9900.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms9900/tms9900.cpp')
-rw-r--r--src/devices/cpu/tms9900/tms9900.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/devices/cpu/tms9900/tms9900.cpp b/src/devices/cpu/tms9900/tms9900.cpp
index e0b207f3335..89f2e1e70a6 100644
--- a/src/devices/cpu/tms9900/tms9900.cpp
+++ b/src/devices/cpu/tms9900/tms9900.cpp
@@ -110,6 +110,7 @@
#include "emu.h"
#include "tms9900.h"
+#include "9900dasm.h"
#define NOPRG -1
@@ -175,9 +176,9 @@ enum
twice their number. Accordingly, the TMS9900 has a CRU bitmask 0x0fff.
****************************************************************************/
-tms99xx_device::tms99xx_device(const machine_config &mconfig, device_type type, const char *tag, int databus_width, int prg_addr_bits, int cru_addr_bits, device_t *owner, uint32_t clock)
+tms99xx_device::tms99xx_device(const machine_config &mconfig, device_type type, const char *tag, int data_width, int prg_addr_bits, int cru_addr_bits, device_t *owner, uint32_t clock)
: cpu_device(mconfig, type, tag, owner, clock),
- m_program_config("program", ENDIANNESS_BIG, databus_width, prg_addr_bits),
+ m_program_config("program", ENDIANNESS_BIG, data_width, prg_addr_bits),
m_io_config("cru", ENDIANNESS_BIG, 8, cru_addr_bits),
m_prgspace(nullptr),
m_cru(nullptr),
@@ -2751,20 +2752,10 @@ uint32_t tms99xx_device::execute_input_lines() const
// execute_burn = nop
// device_disasm_interface overrides
-uint32_t tms99xx_device::disasm_min_opcode_bytes() const
-{
- return 2;
-}
-
-uint32_t tms99xx_device::disasm_max_opcode_bytes() const
-{
- return 6;
-}
-offs_t tms99xx_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+util::disasm_interface *tms99xx_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( tms9900 );
- return CPU_DISASSEMBLE_NAME(tms9900)(this, stream, pc, oprom, opram, options);
+ return new tms9900_disassembler(TMS9900_ID);
}