summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/ibm1800/ibm1800d.h
blob: 47c7a9c3312150eadeb2d16bf703c8019121c31f (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
// license:BSD-3-Clause
// copyright-holders:AJR

#ifndef MAME_CPU_IBM1800_IBM1800D_H
#define MAME_CPU_IBM1800_IBM1800D_H

#pragma once

class ibm1800_disassembler : public util::disasm_interface
{
public:
	// construction/destruction
	ibm1800_disassembler(bool type_1130 = false);

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;

private:
	// formatting helpers
	static void format_cond(std::ostream &stream, u8 cond);
	static void format_disp(std::ostream &stream, int disp);

	const bool m_1130;
};

class ibm1130_disassembler : public ibm1800_disassembler
{
public:
	// construction/destrution
	ibm1130_disassembler();
};

#endif // MAME_CPU_IBM1800_IBM1800D_H