blob: 16e80636febe403d55ee67638ea155776043e5ee (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/*********************************************************************
dvdisasm.h
Disassembly debugger view.
***************************************************************************/
#ifndef MAME_EMU_DEBUG_DVDISASM_H
#define MAME_EMU_DEBUG_DVDISASM_H
#pragma once
#include "debugvw.h"
#include "debugbuf.h"
#include "vecstream.h"
//**************************************************************************
// CONSTANTS
//**************************************************************************
// selections for what goes into the right-hand column
enum disasm_right_column
{
DASM_RIGHTCOL_NONE,
DASM_RIGHTCOL_RAW,
DASM_RIGHTCOL_ENCRYPTED,
DASM_RIGHTCOL_COMMENTS
};
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// a disassembly view_source
class debug_view_disasm_source : public debug_view_source
{
friend class debug_view_disasm;
public:
// construction/destruction
debug_view_disasm_source(std::string &&name, device_t &device);
// getters
address_space &space() const { return m_space; }
offs_t pcbase() const { return m_pcbase != nullptr ? m_pcbase->value() & m_space.logaddrmask() : 0; }
private:
// internal state
address_space & m_space; // address space to display
address_space & m_decrypted_space; // address space to display for decrypted opcodes
const device_state_entry *m_pcbase;
};
// debug view for disassembly
class debug_view_disasm : public debug_view
{
|