summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/t11/t11dasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/t11/t11dasm.h')
-rw-r--r--src/devices/cpu/t11/t11dasm.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/devices/cpu/t11/t11dasm.h b/src/devices/cpu/t11/t11dasm.h
new file mode 100644
index 00000000000..4d51dd75777
--- /dev/null
+++ b/src/devices/cpu/t11/t11dasm.h
@@ -0,0 +1,33 @@
+// license:BSD-3-Clause
+// copyright-holders:Aaron Giles
+/*
+ * A T11 disassembler
+ *
+ * Note: this is probably not the most efficient disassembler in the world :-)
+ *
+ * This code written by Aaron Giles (agiles@sirius.com) for the MAME project
+ *
+ */
+
+#ifndef MAME_CPU_T11_T11DASM_H
+#define MAME_CPU_T11_T11DASM_H
+
+#pragma once
+
+class t11_disassembler : public util::disasm_interface
+{
+public:
+ t11_disassembler() = default;
+ virtual ~t11_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 *const regs[8];
+ u16 r16p(offs_t &pc, const data_buffer &opcodes);
+ std::string MakeEA (int lo, offs_t &pc, int width, const data_buffer &opcodes);
+
+};
+
+#endif