-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dasm6301.h
74 lines (62 loc) · 2.91 KB
/
Dasm6301.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
/***************************************************************************
* 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 __Dasm6301_h_defined__
#define __Dasm6301_h_defined__
#include "Dasm6801.h"
/*****************************************************************************/
/* Dasm6301 : class for a Hitachi 6301 Processor */
/*****************************************************************************/
class Dasm6301 : public Dasm6801
{
public:
Dasm6301(Application *pApp);
virtual ~Dasm6301(void);
// Overrides
public:
// return processor long name
virtual string GetName() { return "Hitachi 6301"; }
protected:
// parse instruction at given memory address for labels
virtual adr_t ParseCode(adr_t addr, int bus = BusCode);
// disassemble instruction at given memory address
virtual adr_t DisassembleCode(adr_t addr, string &smnemo, string &sparm, int bus = BusCode);
protected:
// additional 6309 addressing modes
enum AddrMode6301
{
_bi = addrmodes6800_count, /* Bit Manipulation index */
_bd , /* Bit Manipulation direct */
};
// additional 6301 mnemonics
enum Mnemonics6301
{
_aim = mnemo6801_count,
_eim,
_oim,
_tim,
_slp,
_xgdx,
mnemo6301_count
};
static CMatrixEntry h6301_codes[256];
static OpCode opcodes[mnemo6301_count - mnemo6801_count];
};
#endif // __Dasm6301_h_defined__