forked from mkoloberdin/pasmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimpleinst.h
61 lines (49 loc) · 1.06 KB
/
simpleinst.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
#ifndef INCLUDE_SIMPLEINST_H
#define INCLUDE_SIMPLEINST_H
// simpleinst.h
// Revision 17-dec-2006
#include "pasmotypes.h"
#include "token.h"
#include <vector>
#include <map>
namespace pasmo
{
namespace impl
{
class SimpleInst
{
private:
byte code;
bool edprefix;
bool valid8080;
bool valid86;
byte code86_1;
byte code86_2;
byte code86_3;
std::vector <byte> code86;
public:
SimpleInst ();
SimpleInst (byte code_n);
SimpleInst (byte code_n, bool edprefix_n, bool valid8080_n= false);
SimpleInst (byte code_n, bool edprefix_n, bool valid8080_n,
unsigned long code86);
SimpleInst (byte code_n, const string & code86_n);
bool isED () const;
bool is86 () const;
bool is8080 () const;
byte getcode () const;
std::vector <byte> getcode86 () const;
static const SimpleInst & get (TypeToken tt);
typedef std::map <TypeToken, SimpleInst> simpleinst_t;
static simpleinst_t simpleinst;
class Initializer
{
public:
Initializer (simpleinst_t & si);
};
static Initializer initializer;
};
} // namespace impl
} // namespace pasmo
#endif
// End of simpleinst.h