summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/cdc1700/cdc1700d.h
blob: 63dd04a924a9bb5fe4072e5b9616902b17ab7269 (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
// license:BSD-3-Clause
// copyright-holders:AJR

#ifndef MAME_CPU_CDC1700_CDC1700D_H
#define MAME_CPU_CDC1700_CDC1700D_H

#pragma once

class cdc1700_disassembler : public util::disasm_interface
{
public:
	// construction/destruction
	cdc1700_disassembler();

protected:
	// util::disasm_interface overrides
	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;

	virtual offs_t dasm_register_reference(std::ostream &stream, offs_t pc, const data_buffer &opcodes, u16 inst);

	// formatting helpers
	void format_s8(std::ostream &stream, u8 value);
};

class cyber18_disassembler : public cdc1700_disassembler
{
public:
	// construction/destruction
	cyber18_disassembler();

protected:
	// cdc1700_disassembler overrides
	virtual offs_t dasm_register_reference(std::ostream &stream, offs_t pc, const data_buffer &opcodes, u16 inst) override;
};

#endif // MAME_CPU_CDC1700_CDC1700D_H