summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/t11/t11dasm.h
blob: 4d51dd75777bc22662107b518056d5e230f9c304 (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
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/*
 *   A T11 disassembler
 *
 *   Note: this is probably not the most efficient disassembler in the world :-)
 *
 *   This code written by Aaron Giles (agiles@sirius.com) for the MAME project
 *
 */

#ifndef MAME_CPU_T11_T11DASM_H
#define MAME_CPU_T11_T11DASM_H

#pragma once

class t11_disassembler : public util::disasm_interface
{
public:
	t11_disassembler() = default;
	virtual ~t11_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 &params) override;

private:
	static const char *const regs[8];
	u16 r16p(offs_t &pc, const data_buffer &opcodes);
	std::string MakeEA (int lo, offs_t &pc, int width, const data_buffer &opcodes);

};

#endif