summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mb86233/mb86233d.h
blob: bd475e061b68f38d1ff45cad270466327a837e0f (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
// license:BSD-3-Clause
// copyright-holders:Ernesto Corvi

#ifndef MAME_CPU_MB86233_MB86233D_H
#define MAME_CPU_MB86233_MB86233D_H

#pragma once

class mb86233_disassembler : public util::disasm_interface
{
public:
	mb86233_disassembler() = default;
	virtual ~mb86233_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 regnames[0x40];
	static std::string condition(unsigned int cond, bool invert);
	static std::string regs(u32 reg);
	static std::string memory(u32 reg, bool x1, bool bank);
	static std::string alu0_func(u32 alu);
};

#endif