summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h6280/h6280.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h6280/h6280.cpp')
-rw-r--r--src/devices/cpu/h6280/h6280.cpp34
1 files changed, 6 insertions, 28 deletions
diff --git a/src/devices/cpu/h6280/h6280.cpp b/src/devices/cpu/h6280/h6280.cpp
index c8a81af0532..c47ed31a70f 100644
--- a/src/devices/cpu/h6280/h6280.cpp
+++ b/src/devices/cpu/h6280/h6280.cpp
@@ -112,6 +112,7 @@
#include "emu.h"
#include "h6280.h"
+#include "6280dasm.h"
#include "debugger.h"
/* 6280 flags */
@@ -300,7 +301,7 @@ void h6280_device::device_reset()
m_io_buffer = 0;
m_program = &space(AS_PROGRAM);
- m_direct = &m_program->direct();
+ m_direct = m_program->direct<0>();
m_io = &space(AS_IO);
/* set I and B flags */
@@ -948,7 +949,7 @@ inline void h6280_device::bpl()
***************************************************************/
inline void h6280_device::brk()
{
- logerror("BRK %04xn",PCW);
+ logerror("BRK %04x\n",PCW);
clear_t();
PCW++;
push(PCH);
@@ -2220,36 +2221,13 @@ void h6280_device::state_string_export(const device_state_entry &entry, std::str
//-------------------------------------------------
-// disasm_min_opcode_bytes - return the length
-// of the shortest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t h6280_device::disasm_min_opcode_bytes() const
-{
- return 1;
-}
-
-
-//-------------------------------------------------
-// disasm_max_opcode_bytes - return the length
-// of the longest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t h6280_device::disasm_max_opcode_bytes() const
-{
- return 7;
-}
-
-
-//-------------------------------------------------
-// disasm_disassemble - call the disassembly
+// disassemble - call the disassembly
// helper function
//-------------------------------------------------
-offs_t h6280_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+util::disasm_interface *h6280_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( h6280 );
- return CPU_DISASSEMBLE_NAME(h6280)(this, stream, pc, oprom, opram, options);
+ return new h6280_disassembler;
}