blob: 7f817ab8ba3836f21cef2fbf465759fa2d22f30c (
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
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert, David Carne
// KS0164 disassembler
#ifndef MAME_CPU_KS0164_KS0164D_H
#define MAME_CPU_KS0164_KS0164D_H
#pragma once
class ks0164_disassembler : public util::disasm_interface
{
public:
ks0164_disassembler() = default;
virtual ~ks0164_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 ¶ms) override;
private:
struct instruction {
u16 value;
u16 mask;
u32 (*cb)(std::ostream &, u32, const data_buffer &, u32);
};
static const instruction instructions[];
static const char *const regs[8];
static s32 off10(u32 opcode);
static std::string imm8(s8 dt);
static std::string off16(s16 dt);
};
#endif // MAME_CPU_KS0164_KS0164D_H
|