-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dasm6801.h
78 lines (63 loc) · 2.73 KB
/
Dasm6801.h
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
71
72
73
74
75
76
77
78
/***************************************************************************
* dasmfw -- Disassembler Framework *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
***************************************************************************/
/*****************************************************************************/
/* Dasm6801.h : definition of the Dasm6801 class */
/*****************************************************************************/
#ifndef __Dasm6801_h_defined__
#define __Dasm6801_h_defined__
#include "Dasm6800.h"
/*****************************************************************************/
/* Dasm6801 : class for a Motorola 6801 Processor */
/*****************************************************************************/
class Dasm6801 : public Dasm6800
{
public:
Dasm6801(Application *pApp);
virtual ~Dasm6801(void);
// Overrides
public:
// return processor long name
virtual string GetName() { return "Motorola 6801"; }
// Initialize parsing
virtual bool InitParse(int bus = BusCode);
virtual bool SetConvenience(uint8_t instpg, uint16_t u2, string &smnemo, adr_t &PC);
protected:
// additional 6801 mnemonics
enum Mnemonics6801
{
_abx = mnemo6800_count,
_addd,
_brn,
_ldd,
_mul,
_pulx,
_pshx,
_std,
_subd,
mnemo6801_count
};
enum Reg6801
{
_d = reg6800_count,
reg6801_count
};
static CMatrixEntry m6801_codes[256];
static OpCode opcodes[mnemo6801_count - mnemo6800_count];
static const char *regnames[reg6801_count - reg6800_count];
};
#endif // __Dasm6801_h_defined__