summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/nova/novadasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/nova/novadasm.h')
-rw-r--r--src/devices/cpu/nova/novadasm.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/devices/cpu/nova/novadasm.h b/src/devices/cpu/nova/novadasm.h
new file mode 100644
index 00000000000..e5105c5efd7
--- /dev/null
+++ b/src/devices/cpu/nova/novadasm.h
@@ -0,0 +1,25 @@
+// license:BSD-3-Clause
+// copyright-holders:AJR
+
+#ifndef MAME_CPU_NOVA_NOVADASM_H
+#define MAME_CPU_NOVA_NOVADASM_H
+
+#pragma once
+
+class nova_disassembler : public util::disasm_interface
+{
+public:
+ // construction/destruction
+ nova_disassembler();
+
+protected:
+ // util::disasm_interface overrides
+ virtual u32 opcode_alignment() const override;
+ virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params) override;
+
+ // formatting helpers
+ static void format_effective_address(std::ostream &stream, offs_t pc, u16 inst);
+ static void format_device_code(std::ostream &stream, u8 device);
+};
+
+#endif // MAME_CPU_NOVA_NOVADASM_H