summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/8x300/8x300dasm.h
blob: f5fe389c614a8df287829fc11e246ddb3e792182 (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
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
 * 8x300dasm.c
 *  Implementation of the Scientific Micro Systems SMS300 / Signetics 8X300 Microcontroller
 *
 *  Created on: 18/12/2013
 */

#ifndef MAME_CPU_8X300_8X300DASM_H
#define MAME_CPU_8X300_8X300DASM_H

#pragma once

class n8x300_disassembler : public util::disasm_interface
{
public:
	n8x300_disassembler() = default;
	virtual ~n8x300_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 reg_names[32];

	bool is_rot(uint16_t opcode);
	bool is_src_rot(uint16_t opcode);
};

#endif