summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/lc57/lc57d.h
blob: 2f1fe9ecb7a515277cf2dc7716c1ec8cb2548aec (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
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert

// Sanyo LC57 generic disassembler

#ifndef MAME_CPU_LC57_LC57D_H
#define MAME_CPU_LC57_LC57D_H

#pragma once

class lc57_disassembler : public util::disasm_interface
{
public:
	lc57_disassembler() = default;
	virtual ~lc57_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:
	struct instruction {
		u16 value;
		u16 mask;
		u32 (*cb)(std::ostream &, const data_buffer &, u8, u16);
	};

	static const instruction instructions[];
};

#endif // MAME_CPU_LC57_LC57D_H