summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/8x300/8x300.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/8x300/8x300.cpp')
-rw-r--r--src/devices/cpu/8x300/8x300.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/8x300/8x300.cpp b/src/devices/cpu/8x300/8x300.cpp
index 44bb9b34fe6..575b3f2d0d0 100644
--- a/src/devices/cpu/8x300/8x300.cpp
+++ b/src/devices/cpu/8x300/8x300.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "8x300.h"
+#include "8x300dasm.h"
#include "debugger.h"
#define FETCHOP(a) (m_direct->read_word(a))
@@ -96,7 +97,7 @@ uint8_t n8x300_cpu_device::get_reg(uint8_t reg)
void n8x300_cpu_device::device_start()
{
m_program = &space(AS_PROGRAM);
- m_direct = &m_program->direct();
+ m_direct = m_program->direct<0>();
m_io = &space(AS_IO);
save_item(NAME(m_PC));
@@ -590,8 +591,7 @@ void n8x300_cpu_device::execute_run()
} while (m_icount > 0);
}
-offs_t n8x300_cpu_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+util::disasm_interface *n8x300_cpu_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( n8x300 );
- return CPU_DISASSEMBLE_NAME(n8x300)(this, stream, pc, oprom, opram, options);
+ return new n8x300_disassembler;
}