diff options
Diffstat (limited to 'src/devices/cpu/jaguar/jagdasm.h')
-rw-r--r-- | src/devices/cpu/jaguar/jagdasm.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/devices/cpu/jaguar/jagdasm.h b/src/devices/cpu/jaguar/jagdasm.h new file mode 100644 index 00000000000..232fda13b1f --- /dev/null +++ b/src/devices/cpu/jaguar/jagdasm.h @@ -0,0 +1,37 @@ +// license:BSD-3-Clause +// copyright-holders:Aaron Giles +/*************************************************************************** + + jagdasm.c + Disassembler for the portable Jaguar DSP emulator. + Written by Aaron Giles + +***************************************************************************/ + +#ifndef MAME_CPU_JAGUAR_JAGDASM_H +#define MAME_CPU_JAGUAR_JAGDASM_H + +#pragma once + +class jaguar_disassembler : public util::disasm_interface +{ +public: + static constexpr unsigned JAGUAR_VARIANT_GPU = 0; + static constexpr unsigned JAGUAR_VARIANT_DSP = 1; + + jaguar_disassembler(u32 variant); + virtual ~jaguar_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 uint8_t convert_zero[32]; + static const char *const condition[32]; + + u32 m_variant; + + static std::string signed_16bit(int16_t val); +}; + +#endif |