summaryrefslogtreecommitdiffstats
path: root/src/micro/picinfo12bit.h
blob: 899bfc7646b31a267667ec2d3b3a4422bfe7542c (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/***************************************************************************
 *   Copyright (C) 2003-2004 by David Saxton                               *
 *   [email protected]                                                    *
 *                                                                         *
 *   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.                                   *
 ***************************************************************************/

#ifndef PICINFO12BIT_H
#define PICINFO12BIT_H

#include "picinfo.h"
#include "asminfo.h"

/**
@short 12 Bit PIC Instructions
@author David Saxton
 */
class PicAsm12bit : public AsmInfo
{
	public:
		static PicAsm12bit *self();
		virtual Set set() const { return AsmInfo::PIC12; }
	
	protected:
		static PicAsm12bit *m_self;
	
	private:
		PicAsm12bit();
};

/**
@author David Saxton
 */
class PicInfo12bit : public PicInfo
{
	public:
		PicInfo12bit();
		~PicInfo12bit();
	
		virtual AsmInfo * instructionSet() { return PicAsm12bit::self(); }
};

/**
@author David Saxton
 */
class PicInfo16C54 : public PicInfo12bit
{
	public:
		PicInfo16C54();
		~PicInfo16C54();
		virtual Support gpsimSupport() const { return FullSupport; }
};

/**
@author David Saxton
 */
class PicInfo16C55 : public PicInfo12bit
{
	public:
		PicInfo16C55();
		~PicInfo16C55();
		virtual Support gpsimSupport() const { return FullSupport; }
};

/**
@author David Saxton
 */
class PicInfo12C508 : public PicInfo12bit
{
	public:
		PicInfo12C508();
		~PicInfo12C508();
		virtual Support gpsimSupport() const { return FullSupport; }
};

/**
@author David Saxton
 */
class PicInfo12C509 : public PicInfo12C508
{
	public:
		PicInfo12C509();
		~PicInfo12C509();
		virtual Support gpsimSupport() const { return FullSupport; }
};

/**
@author David Saxton
 */
class PicInfo12C671 : public PicInfo12C508
{
	public:
		PicInfo12C671();
		~PicInfo12C671();
		virtual Support gpsimSupport() const { return NoSupport; }
};

/**
@author David Saxton
 */
class PicInfo12C672 : public PicInfo12C508
{
	public:
		PicInfo12C672();
		~PicInfo12C672();
		virtual Support gpsimSupport() const { return NoSupport; }
};

#endif