summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/xavix2/xavix2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/xavix2/xavix2d.h')
-rw-r--r--src/devices/cpu/xavix2/xavix2d.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/devices/cpu/xavix2/xavix2d.h b/src/devices/cpu/xavix2/xavix2d.h
new file mode 100644
index 00000000000..64c5ab42c27
--- /dev/null
+++ b/src/devices/cpu/xavix2/xavix2d.h
@@ -0,0 +1,47 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert, Nathan Gilbert
+
+// Xavix2 disassembler
+
+#ifndef MAME_CPU_XAVIX2_XAVIX2DASM_H
+#define MAME_CPU_XAVIX2_XAVIX2DASM_H
+
+#pragma once
+
+class xavix2_disassembler : public util::disasm_interface
+{
+public:
+ xavix2_disassembler() = default;
+ virtual ~xavix2_disassembler() = default;
+
+ 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;
+
+private:
+ static const u8 bpo[8];
+ static const char *const reg_names[8];
+
+ u32 m_pc, m_opcode;
+
+ const char *r1();
+ const char *r2();
+ const char *r3();
+ std::string val22s();
+ std::string val19u();
+ std::string val14h();
+ std::string val14u();
+ std::string val14s();
+ std::string val11u();
+ std::string val6s();
+ std::string val3u();
+ std::string off11s();
+ std::string off6s();
+ std::string off3s();
+ std::string adr24();
+ std::string adr16();
+ std::string rel16();
+ std::string rel8();
+};
+
+#endif
+