summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/alpha/alphad.h
blob: 3c3475e573013ac41c3454d3aedc124e450512d1 (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:Patrick Mackinlay

#ifndef MAME_CPU_ALPHA_ALPHAD_H
#define MAME_CPU_ALPHA_ALPHAD_H

#pragma once

class alpha_disassembler : public util::disasm_interface
{
public:
	enum dasm_type : unsigned
	{
		TYPE_UNKNOWN = 0,
		TYPE_NT      = 1,
		TYPE_UNIX    = 2,
		TYPE_VMS     = 3,
	};

	alpha_disassembler(alpha_disassembler::dasm_type type = TYPE_UNKNOWN)
		: m_dasm_type(type)
	{
	};
	virtual ~alpha_disassembler() = default;

	virtual u32 opcode_alignment() const override { return 4; };
	virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params) override;

private:
	static char const *const R[];
	static char const *const F[];

	static char const *const PT[];
	static char const *const ABX[];
	static char const *const IBX[];

	dasm_type const m_dasm_type;
};

#endif // MAME_CPU_ALPHA_ALPHAD_H