summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms32082/dis_mp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms32082/dis_mp.h')
-rw-r--r--src/devices/cpu/tms32082/dis_mp.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/devices/cpu/tms32082/dis_mp.h b/src/devices/cpu/tms32082/dis_mp.h
new file mode 100644
index 00000000000..8c3a0721c1a
--- /dev/null
+++ b/src/devices/cpu/tms32082/dis_mp.h
@@ -0,0 +1,35 @@
+// license:BSD-3-Clause
+// copyright-holders:Ville Linde
+// TMS32082 MP Disassembler
+
+#ifndef MAME_CPU_TMS32082_DIS_MP_H
+#define MAME_CPU_TMS32082_DIS_MP_H
+
+#pragma once
+
+class tms32082_mp_disassembler : public util::disasm_interface
+{
+public:
+ tms32082_mp_disassembler() = default;
+ virtual ~tms32082_mp_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 char *BCND_CONDITION[32];
+ static const char *BITNUM_CONDITION[32];
+ static const char *MEMOP_S[2];
+ static const char *MEMOP_M[2];
+ static const char *FLOATOP_PRECISION[4];
+ static const char *ACC_SEL[4];
+ static const char *FLOATOP_ROUND[4];
+
+ std::ostream *output;
+
+ uint32_t fetch(offs_t &pos, const data_buffer &opcodes);
+ std::string get_creg_name(uint32_t reg);
+ std::string format_vector_op(uint32_t op, uint32_t imm32);
+};
+
+#endif