replicode
opcodes.h
Go to the documentation of this file.
1 // opcodes.h
2 //
3 // Author: Eric Nivel
4 //
5 // BSD license:
6 // Copyright (c) 2010, Eric Nivel
7 // All rights reserved.
8 // Redistribution and use in source and binary forms, with or without
9 // modification, are permitted provided that the following conditions are met:
10 //
11 // - Redistributions of source code must retain the above copyright
12 // notice, this list of conditions and the following disclaimer.
13 // - Redistributions in binary form must reproduce the above copyright
14 // notice, this list of conditions and the following disclaimer in the
15 // documentation and/or other materials provided with the distribution.
16 // - Neither the name of Eric Nivel nor the
17 // names of their contributors may be used to endorse or promote products
18 // derived from this software without specific prior written permission.
19 //
20 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
21 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 // DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
24 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 #ifndef opcodes_h
32 #define opcodes_h
33 
34 #include "CoreLibrary/dll.h"
35 
36 #include <cstdint>
37 
38 namespace r_exec {
39 
40 // Opcodes are initialized by Init().
42 public:
43  static uint16_t View;
44  static uint16_t PgmView;
45  static uint16_t GrpView;
46 
47  static uint16_t Ent;
48  static uint16_t Ont;
49  static uint16_t MkVal;
50 
51  static uint16_t Grp;
52 
53  static uint16_t Ptn;
54  static uint16_t AntiPtn;
55 
56  static uint16_t IPgm;
57  static uint16_t ICppPgm;
58 
59  static uint16_t Pgm;
60  static uint16_t AntiPgm;
61 
62  static uint16_t ICmd;
63  static uint16_t Cmd;
64 
65  static uint16_t Fact;
66  static uint16_t AntiFact;
67 
68  static uint16_t Mdl;
69  static uint16_t Cst;
70 
71  static uint16_t ICst;
72  static uint16_t IMdl;
73 
74  static uint16_t Pred;
75  static uint16_t Goal;
76 
77  static uint16_t Success;
78 
79  static uint16_t MkGrpPair;
80 
81  static uint16_t MkRdx;
82  static uint16_t Perf;
83 
84  static uint16_t MkNew;
85 
86  static uint16_t MkLowRes;
87  static uint16_t MkLowSln;
88  static uint16_t MkHighSln;
89  static uint16_t MkLowAct;
90  static uint16_t MkHighAct;
91  static uint16_t MkSlnChg;
92  static uint16_t MkActChg;
93 
94  static uint16_t Inject;
95  static uint16_t Eject;
96  static uint16_t Mod;
97  static uint16_t Set;
98  static uint16_t NewClass;
99  static uint16_t DelClass;
100  static uint16_t LDC;
101  static uint16_t Swap;
102  static uint16_t Prb;
103  static uint16_t Stop;
104 
105  static uint16_t Add;
106  static uint16_t Sub;
107  static uint16_t Mul;
108  static uint16_t Div;
109 };
110 }
111 
112 
113 #endif
static uint16_t ICst
Definition: opcodes.h:71
static uint16_t Fact
Definition: opcodes.h:65
static uint16_t Pred
Definition: opcodes.h:74
static uint16_t AntiFact
Definition: opcodes.h:66
static uint16_t Prb
Definition: opcodes.h:102
Definition: opcodes.h:41
static uint16_t AntiPgm
Definition: opcodes.h:60
static uint16_t Grp
Definition: opcodes.h:51
static uint16_t Swap
Definition: opcodes.h:101
static uint16_t Ont
Definition: opcodes.h:48
static uint16_t Perf
Definition: opcodes.h:82
static uint16_t AntiPtn
Definition: opcodes.h:54
#define dll_export
Definition: dll.h:44
static uint16_t View
Definition: opcodes.h:43
Definition: _context.cpp:34
static uint16_t Div
Definition: opcodes.h:108
static uint16_t LDC
Definition: opcodes.h:100
static uint16_t Add
Definition: opcodes.h:105
static uint16_t IPgm
Definition: opcodes.h:56
static uint16_t ICmd
Definition: opcodes.h:62
static uint16_t MkRdx
Definition: opcodes.h:81
static uint16_t Cmd
Definition: opcodes.h:63
static uint16_t MkGrpPair
Definition: opcodes.h:79
static uint16_t DelClass
Definition: opcodes.h:99
static uint16_t Mul
Definition: opcodes.h:107
static uint16_t Ent
Definition: opcodes.h:47
static uint16_t Set
Definition: opcodes.h:97
static uint16_t Goal
Definition: opcodes.h:75
static uint16_t NewClass
Definition: opcodes.h:98
static uint16_t MkSlnChg
Definition: opcodes.h:91
static uint16_t Cst
Definition: opcodes.h:69
static uint16_t Mdl
Definition: opcodes.h:68
static uint16_t MkLowRes
Definition: opcodes.h:86
static uint16_t Eject
Definition: opcodes.h:95
static uint16_t Pgm
Definition: opcodes.h:59
static uint16_t PgmView
Definition: opcodes.h:44
static uint16_t MkLowSln
Definition: opcodes.h:87
static uint16_t MkNew
Definition: opcodes.h:84
static uint16_t Sub
Definition: opcodes.h:106
static uint16_t Ptn
Definition: opcodes.h:53
static uint16_t MkVal
Definition: opcodes.h:49
static uint16_t MkHighSln
Definition: opcodes.h:88
static uint16_t Inject
Definition: opcodes.h:94
static uint16_t GrpView
Definition: opcodes.h:45
static uint16_t MkHighAct
Definition: opcodes.h:90
static uint16_t ICppPgm
Definition: opcodes.h:57
static uint16_t IMdl
Definition: opcodes.h:72
static uint16_t MkLowAct
Definition: opcodes.h:89
static uint16_t Mod
Definition: opcodes.h:96
static uint16_t MkActChg
Definition: opcodes.h:92
static uint16_t Success
Definition: opcodes.h:77
static uint16_t Stop
Definition: opcodes.h:103