summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/scudsp/scudspdasm.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/scudsp/scudspdasm.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/scudsp/scudspdasm.h')
-rw-r--r--src/devices/cpu/scudsp/scudspdasm.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/devices/cpu/scudsp/scudspdasm.h b/src/devices/cpu/scudsp/scudspdasm.h
new file mode 100644
index 00000000000..7f86d0366aa
--- /dev/null
+++ b/src/devices/cpu/scudsp/scudspdasm.h
@@ -0,0 +1,33 @@
+// license:BSD-3-Clause
+// copyright-holders:Angelo Salese, Mariusz Wojcieszek
+
+#ifndef MAME_CPU_SCUDSP_SCUDSPDASM_H
+#define MAME_CPU_SCUDSP_SCUDSPDASM_H
+
+#pragma once
+
+class scudsp_disassembler : public util::disasm_interface
+{
+public:
+ scudsp_disassembler() = default;
+ virtual ~scudsp_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 ALU_Commands[];
+ static const char *const X_Commands[];
+ static const char *const Y_Commands[];
+ static const char *const D1_Commands[];
+ static const char *const SourceMemory[];
+ static const char *const SourceMemory2[];
+ static const char *const DestMemory[];
+ static const char *const DestDMAMemory[];
+ static const char *const MVI_Command[];
+ static const char *const JMP_Command[];
+ static const char *const DMA_Command[];
+ std::string scudsp_dasm_prefix( const char* format, uint32_t *data );
+};
+
+#endif