diff options
author | 2017-07-05 11:44:49 +0200 | |
---|---|---|
committer | 2017-11-26 17:41:27 +0100 | |
commit | 6caef2579a1490f05d28bcede731cbdd45fc5c65 (patch) | |
tree | 8055384e183be3cb27e7d0894ac53dc96c09e6fa /src/devices/cpu/mb86235/mb86235d.h | |
parent | 34b222062c89adbeed822f56be6130421777e11f (diff) |
dvdisasm: Overhaul [O. Galibert]
Disassemblers are now independant classes. Not only the code is
cleaner, but unidasm has access to all the cpu cores again. The
interface to the disassembly method has changed from byte buffers to
objects that give a result to read methods. This also adds support
for lfsr and/or paged PCs.
Diffstat (limited to 'src/devices/cpu/mb86235/mb86235d.h')
-rw-r--r-- | src/devices/cpu/mb86235/mb86235d.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/devices/cpu/mb86235/mb86235d.h b/src/devices/cpu/mb86235/mb86235d.h new file mode 100644 index 00000000000..a29fe41f064 --- /dev/null +++ b/src/devices/cpu/mb86235/mb86235d.h @@ -0,0 +1,42 @@ +// license:BSD-3-Clause +// copyright-holders:Angelo Salese, ElSemi, Ville Linde +#ifndef MAME_CPU_MB86235_MB86235D_H +#define MAME_CPU_MB86235_MB86235D_H + +#pragma once + +class mb86235_disassembler : public util::disasm_interface +{ +public: + mb86235_disassembler() = default; + virtual ~mb86235_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: + static const char *regname[128]; + static const char *db_mnemonic[64]; + static const char *dbn_mnemonic[64]; + static const char *dc_mnemonic[64]; + static const char *dcn_mnemonic[64]; + static const char *mi1_field[16]; + static const char *mi2_field[32]; + static const char *mo_field[32]; + static const char *ai1_field[16]; + static const char *ai2_field[32]; + static const char *ai2f_field[32]; + + void dasm_ea(std::ostream &stream, int md, int arx, int ary, int disp); + void dasm_alu_mul(std::ostream &stream, uint64_t opcode, bool twoop); + void dasm_control(std::ostream &stream, uint32_t pc, uint64_t opcode); + void dasm_double_xfer1(std::ostream &stream, uint64_t opcode); + void dasm_xfer1(std::ostream &stream, uint64_t opcode); + void dasm_double_xfer2_field(std::ostream &stream, int sd, uint32_t field); + void dasm_double_xfer2(std::ostream &stream, uint64_t opcode); + void dasm_xfer2(std::ostream &stream, uint64_t opcode); + void dasm_xfer3(std::ostream &stream, uint64_t opcode); + +}; + +#endif |