blob: e5549d4d59fe440f222b785c8b397de58b0a025c (
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
|
// license:BSD-3-Clause
// copyright-holders:AJR
#ifndef MAME_CPU_VAX_VAXDASM_H
#define MAME_CPU_VAX_VAXDASM_H
#pragma once
class vax_disassembler : public util::disasm_interface
{
public:
enum class mode : u8;
struct opdef
{
std::string_view mnemonic;
mode operand[6];
u32 flags;
};
// construction/destruction
vax_disassembler();
protected:
// disassembler overrides
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:
// internal helpers
void format_immediate(std::ostream &stream, u32 i) const;
void format_signed(std::ostream &stream, s32 value) const;
void format_relative(std::ostream &stream, u32 pc, s32 displ) const;
void format_register_mask(std::ostream &stream, u16 mask) const;
offs_t disassemble_inst(std::ostream &stream, const opdef &inst, offs_t &pc, offs_t ppc, const data_buffer &opcodes) const;
};
#endif // MAME_CPU_VAX_VAXDASM_H
|