blob: 6bc07b184e7c902f889ff811bedf72cae82c550e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// 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:
enum class variant
{
GPU = 0,
DSP = 1
};
jaguar_disassembler(variant var);
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 u8 convert_zero[32];
static const char *const condition[32];
const variant m_variant;
static std::string signed_16bit(int16_t val);
};
#endif // MAME_CPU_JAGUAR_JAGDASM_H
|