diff options
Diffstat (limited to 'src/devices/cpu/unsp/unspdasm.h')
-rw-r--r-- | src/devices/cpu/unsp/unspdasm.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/devices/cpu/unsp/unspdasm.h b/src/devices/cpu/unsp/unspdasm.h new file mode 100644 index 00000000000..ef25b2a433b --- /dev/null +++ b/src/devices/cpu/unsp/unspdasm.h @@ -0,0 +1,32 @@ +// license:BSD-3-Clause +// copyright-holders:Ryan Holtz +/**************************\ +* +* SunPlus u'nSP disassembler +* +* by Ryan Holtz +* +\**************************/ + + +#ifndef MAME_CPU_UNSP_UNSPDASM_H +#define MAME_CPU_UNSP_UNSPDASM_H + +#pragma once + +class unsp_disassembler : public util::disasm_interface +{ +public: + unsp_disassembler() = default; + virtual ~unsp_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 ¶ms) override; + +private: + static const char *reg[]; + static const char *jmp[]; + static const char *alu[]; +}; + +#endif |