blob: 4219c52655ade88aa8af82bf72644f027b1e2a62 (
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
|
// license:BSD-3-Clause
// copyright-holders:Ville Linde
// TMS320C82 Master Processor Disassembler
#ifndef MAME_CPU_TMS320C82_MP_DASM_H
#define MAME_CPU_TMS320C82_MP_DASM_H
#pragma once
class tms320c82_mp_disassembler : public util::disasm_interface
{
public:
tms320c82_mp_disassembler() = default;
virtual ~tms320c82_mp_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 char const *const BCND_CONDITION[32];
static char const *const BITNUM_CONDITION[32];
static char const *const MEMOP_S[2];
static char const *const MEMOP_M[2];
static char const *const FLOATOP_PRECISION[4];
static char const *const ACC_SEL[4];
static char const *const FLOATOP_ROUND[4];
std::ostream *output;
uint32_t fetch(offs_t &pos, const data_buffer &opcodes);
std::string get_creg_name(uint32_t reg);
std::string format_vector_op(uint32_t op, uint32_t imm32);
};
#endif
|