summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mb86233/mb86233d.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-07-05 11:44:49 +0200
committer Olivier Galibert <galibert@pobox.com>2017-11-26 17:41:27 +0100
commit6caef2579a1490f05d28bcede731cbdd45fc5c65 (patch)
tree8055384e183be3cb27e7d0894ac53dc96c09e6fa /src/devices/cpu/mb86233/mb86233d.h
parent34b222062c89adbeed822f56be6130421777e11f (diff)
dvdisasm: Overhaul [O. Galibert]
Disassemblers are now independant classes. Not only the code is cleaner, but unidasm has access to all the cpu cores again. The interface to the disassembly method has changed from byte buffers to objects that give a result to read methods. This also adds support for lfsr and/or paged PCs.
Diffstat (limited to 'src/devices/cpu/mb86233/mb86233d.h')
-rw-r--r--src/devices/cpu/mb86233/mb86233d.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/devices/cpu/mb86233/mb86233d.h b/src/devices/cpu/mb86233/mb86233d.h
new file mode 100644
index 00000000000..50a48a6f0a9
--- /dev/null
+++ b/src/devices/cpu/mb86233/mb86233d.h
@@ -0,0 +1,26 @@
+// license:BSD-3-Clause
+// copyright-holders:Ernesto Corvi
+
+#ifndef MAME_CPU_MB86233_MB86233D_H
+#define MAME_CPU_MB86233_MB86233D_H
+
+#pragma once
+
+class mb86233_disassembler : public util::disasm_interface
+{
+public:
+ mb86233_disassembler() = default;
+ virtual ~mb86233_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 regnames[0x40];
+ static std::string condition(unsigned int cond, bool invert);
+ static std::string regs(u32 reg);
+ static std::string memory(u32 reg, bool x1);
+ static std::string alu0_func(u32 alu);
+};
+
+#endif