summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/cosmac/cosmac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/cosmac/cosmac.cpp')
-rw-r--r--src/devices/cpu/cosmac/cosmac.cpp37
1 files changed, 7 insertions, 30 deletions
diff --git a/src/devices/cpu/cosmac/cosmac.cpp b/src/devices/cpu/cosmac/cosmac.cpp
index 171a4a4d734..f489eca224b 100644
--- a/src/devices/cpu/cosmac/cosmac.cpp
+++ b/src/devices/cpu/cosmac/cosmac.cpp
@@ -9,6 +9,7 @@
#include "emu.h"
#include "debugger.h"
#include "cosmac.h"
+#include "cosdasm.h"
#include "coreutil.h"
// permit our enums to be saved
@@ -479,45 +480,21 @@ void cosmac_device::state_string_export(const device_state_entry &entry, std::st
//-------------------------------------------------
-// disasm_min_opcode_bytes - return the length
-// of the shortest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t cosmac_device::disasm_min_opcode_bytes() const
-{
- return 1;
-}
-
-
-//-------------------------------------------------
-// disasm_max_opcode_bytes - return the length
-// of the longest instruction, in bytes
-//-------------------------------------------------
-
-uint32_t cosmac_device::disasm_max_opcode_bytes() const
-{
- return 3;
-}
-
-
-//-------------------------------------------------
-// disasm_disassemble - call the disassembly
+// disassemble - call the disassembly
// helper function
//-------------------------------------------------
-offs_t cdp1801_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+util::disasm_interface *cdp1801_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( cdp1801 );
- return CPU_DISASSEMBLE_NAME( cdp1801 )(this, stream, pc, oprom, opram, options);
+ return new cosmac_disassembler(cosmac_disassembler::TYPE_1801);
}
-offs_t cdp1802_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
+
+util::disasm_interface *cdp1802_device::create_disassembler()
{
- extern CPU_DISASSEMBLE( cdp1802 );
- return CPU_DISASSEMBLE_NAME( cdp1802 )(this, stream, pc, oprom, opram, options);
+ return new cosmac_disassembler(cosmac_disassembler::TYPE_1802);
}
-
//**************************************************************************
// INLINE HELPERS
//**************************************************************************