blob: d6e13bb4c8d6b0d944d3d5f1710d6984232c5e8b (
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
38
39
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
// Yamaha SWP30 - Multiple effects generator subpart
//
// Audio dsp dedicated to effects generation
//
// Disassembler
#ifndef MAME_SOUND_SWP30D_H
#define MAME_SOUND_SWP30D_H
#pragma once
class swp30_disassembler : public util::disasm_interface
{
public:
class info {
public:
virtual u16 swp30d_const_r(u16 address) const = 0;
virtual u16 swp30d_offset_r(u16 address) const = 0;
};
swp30_disassembler(info *inf = nullptr);
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:
info *m_info;
std::string gconst(offs_t address) const;
std::string goffset(offs_t address) const;
static inline u32 b(u64 opc, u32 start, u32 count);
static inline void append(std::string &r, const std::string &e);
};
#endif // MAME_SOUND_SWP30D_H
|