summaryrefslogtreecommitdiffstats
path: root/ue3/doxygen/instructions_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'ue3/doxygen/instructions_8h-source.html')
-rw-r--r--ue3/doxygen/instructions_8h-source.html347
1 files changed, 347 insertions, 0 deletions
diff --git a/ue3/doxygen/instructions_8h-source.html b/ue3/doxygen/instructions_8h-source.html
new file mode 100644
index 0000000..7054830
--- /dev/null
+++ b/ue3/doxygen/instructions_8h-source.html
@@ -0,0 +1,347 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mycpu: mycpu/instructions.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.3 -->
8<div class="tabs">
9 <ul>
10 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Classes</span></a></li>
13 <li class="current"><a href="files.html"><span>Files</span></a></li>
14 </ul>
15</div>
16<h1>mycpu/instructions.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00008"></a>00008 <span class="preprocessor">#ifndef INSTRUCTIONS_H</span>
18<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define INSTRUCTIONS_H 1</span>
19<a name="l00010"></a>00010 <span class="preprocessor"></span>
20<a name="l00011"></a>00011 <span class="preprocessor">#include "cinstruction.h"</span>
21<a name="l00012"></a>00012 <span class="preprocessor">#include "ccpu.h"</span>
22<a name="l00013"></a>00013
23<a name="l00021"></a><a class="code" href="classCInstructionInc.html">00021</a> <span class="keyword">class </span><a class="code" href="classCInstructionInc.html">CInstructionInc</a>
24<a name="l00022"></a>00022 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
25<a name="l00023"></a>00023 {
26<a name="l00024"></a>00024 <span class="keyword">public</span>:
27<a name="l00025"></a>00025 <a class="code" href="classCInstructionInc.html">CInstructionInc</a>()
28<a name="l00026"></a>00026 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"inc"</span>)
29<a name="l00027"></a>00027 {}
30<a name="l00028"></a>00028
31<a name="l00029"></a><a class="code" href="classCInstructionInc.html#d55c35cbbd5c88fd29a392051e79f5f1">00029</a> <a class="code" href="classCInstructionInc.html">CInstructionInc</a> *<a class="code" href="classCInstructionInc.html#d55c35cbbd5c88fd29a392051e79f5f1" title="creates a new instance of this instruction">factory</a>()
32<a name="l00030"></a>00030 {
33<a name="l00031"></a>00031 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionInc.html">CInstructionInc</a>;
34<a name="l00032"></a>00032 }
35<a name="l00033"></a>00033
36<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="classCInstructionInc.html#ae36e952ec66b1c5cc2fb7e7c80064cc" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
37<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classCInstructionInc.html#2830b4c1aa89410e309821119ecf4d6f" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
38<a name="l00036"></a>00036
39<a name="l00037"></a>00037 <span class="keyword">protected</span>:
40<a name="l00039"></a><a class="code" href="classCInstructionInc.html#b910df5b37f4d1352736913ee0cb7fb0">00039</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionInc.html#b910df5b37f4d1352736913ee0cb7fb0">m_regidx1</a>;
41<a name="l00040"></a>00040 };
42<a name="l00041"></a>00041
43<a name="l00042"></a>00042 <span class="comment">/*============================================================================*/</span>
44<a name="l00043"></a>00043
45<a name="l00051"></a><a class="code" href="classCInstructionDec.html">00051</a> <span class="keyword">class </span><a class="code" href="classCInstructionDec.html">CInstructionDec</a>
46<a name="l00052"></a>00052 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
47<a name="l00053"></a>00053 {
48<a name="l00054"></a>00054 <span class="keyword">public</span>:
49<a name="l00055"></a>00055 <a class="code" href="classCInstructionDec.html">CInstructionDec</a>()
50<a name="l00056"></a>00056 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"dec"</span>)
51<a name="l00057"></a>00057 {}
52<a name="l00058"></a>00058
53<a name="l00059"></a><a class="code" href="classCInstructionDec.html#5aa3bcd55f05765e25758f45f4f55059">00059</a> <a class="code" href="classCInstructionDec.html">CInstructionDec</a> *<a class="code" href="classCInstructionDec.html#5aa3bcd55f05765e25758f45f4f55059" title="creates a new instance of this instruction">factory</a>()
54<a name="l00060"></a>00060 {
55<a name="l00061"></a>00061 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionDec.html">CInstructionDec</a>;
56<a name="l00062"></a>00062 }
57<a name="l00063"></a>00063
58<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="classCInstructionDec.html#84347e9b3a373bafc5c1ae79a557f4c3" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
59<a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="classCInstructionDec.html#b0a51da3b41aaa4e3e51baaa4151ebca" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
60<a name="l00066"></a>00066
61<a name="l00067"></a>00067 <span class="keyword">protected</span>:
62<a name="l00069"></a><a class="code" href="classCInstructionDec.html#4ea09ae25025e93c2790d5dc1536f41c">00069</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionDec.html#4ea09ae25025e93c2790d5dc1536f41c">m_regidx1</a>;
63<a name="l00070"></a>00070 };
64<a name="l00071"></a>00071
65<a name="l00072"></a>00072 <span class="comment">/*============================================================================*/</span>
66<a name="l00073"></a>00073
67<a name="l00081"></a><a class="code" href="classCInstructionAdd.html">00081</a> <span class="keyword">class </span><a class="code" href="classCInstructionAdd.html">CInstructionAdd</a>
68<a name="l00082"></a>00082 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
69<a name="l00083"></a>00083 {
70<a name="l00084"></a>00084 <span class="keyword">public</span>:
71<a name="l00085"></a>00085 <a class="code" href="classCInstructionAdd.html">CInstructionAdd</a>()
72<a name="l00086"></a>00086 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"add"</span>)
73<a name="l00087"></a>00087 {}
74<a name="l00088"></a>00088
75<a name="l00089"></a><a class="code" href="classCInstructionAdd.html#6fa9bae98f84f5ae34946641fb03ff32">00089</a> <a class="code" href="classCInstructionAdd.html">CInstructionAdd</a> *<a class="code" href="classCInstructionAdd.html#6fa9bae98f84f5ae34946641fb03ff32" title="creates a new instance of this instruction">factory</a>()
76<a name="l00090"></a>00090 {
77<a name="l00091"></a>00091 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionAdd.html">CInstructionAdd</a>;
78<a name="l00092"></a>00092 }
79<a name="l00093"></a>00093
80<a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="classCInstructionAdd.html#1da9f4b4016d27f2866add0b91e3b0fc" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
81<a name="l00095"></a>00095 <span class="keywordtype">void</span> <a class="code" href="classCInstructionAdd.html#3c6844fd425de436ba3e7fbc98fd69e8" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
82<a name="l00096"></a>00096
83<a name="l00097"></a>00097 <span class="keyword">protected</span>:
84<a name="l00099"></a><a class="code" href="classCInstructionAdd.html#2808878fbfbee48f1c300bdd976446f4">00099</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionAdd.html#2808878fbfbee48f1c300bdd976446f4">m_regidx1</a>;
85<a name="l00101"></a><a class="code" href="classCInstructionAdd.html#98e9005e15d5eb69ce561a91348a3a91">00101</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionAdd.html#98e9005e15d5eb69ce561a91348a3a91">m_regidx2</a>;
86<a name="l00103"></a><a class="code" href="classCInstructionAdd.html#1c5979587fea23262a9bc593b9dc61a3">00103</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionAdd.html#1c5979587fea23262a9bc593b9dc61a3">m_regidx3</a>;
87<a name="l00104"></a>00104 };
88<a name="l00105"></a>00105
89<a name="l00106"></a>00106 <span class="comment">/*============================================================================*/</span>
90<a name="l00107"></a>00107
91<a name="l00115"></a><a class="code" href="classCInstructionSub.html">00115</a> <span class="keyword">class </span><a class="code" href="classCInstructionSub.html">CInstructionSub</a>
92<a name="l00116"></a>00116 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
93<a name="l00117"></a>00117 {
94<a name="l00118"></a>00118 <span class="keyword">public</span>:
95<a name="l00119"></a>00119 <a class="code" href="classCInstructionSub.html">CInstructionSub</a>()
96<a name="l00120"></a>00120 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"sub"</span>)
97<a name="l00121"></a>00121 {}
98<a name="l00122"></a>00122
99<a name="l00123"></a><a class="code" href="classCInstructionSub.html#71c77a5113f96ac25e79bc4d28072541">00123</a> <a class="code" href="classCInstructionSub.html">CInstructionSub</a> *<a class="code" href="classCInstructionSub.html#71c77a5113f96ac25e79bc4d28072541" title="creates a new instance of this instruction">factory</a>()
100<a name="l00124"></a>00124 {
101<a name="l00125"></a>00125 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionSub.html">CInstructionSub</a>;
102<a name="l00126"></a>00126 }
103<a name="l00127"></a>00127
104<a name="l00128"></a>00128 <span class="keywordtype">void</span> <a class="code" href="classCInstructionSub.html#9fe6d8f0f805313c98f8806a4739cbe9" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
105<a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="classCInstructionSub.html#03e098595198d4cc2f45d906e45e7f28" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
106<a name="l00130"></a>00130
107<a name="l00131"></a>00131 <span class="keyword">protected</span>:
108<a name="l00133"></a><a class="code" href="classCInstructionSub.html#f9884524cd60c34f3d9a5142e1e586fb">00133</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionSub.html#f9884524cd60c34f3d9a5142e1e586fb">m_regidx1</a>;
109<a name="l00135"></a><a class="code" href="classCInstructionSub.html#67030fafc6429936130bbe26874c337c">00135</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionSub.html#67030fafc6429936130bbe26874c337c">m_regidx2</a>;
110<a name="l00137"></a><a class="code" href="classCInstructionSub.html#a059bfa11944c55216619bb4328ed44e">00137</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionSub.html#a059bfa11944c55216619bb4328ed44e">m_regidx3</a>;
111<a name="l00138"></a>00138 };
112<a name="l00139"></a>00139
113<a name="l00140"></a>00140 <span class="comment">/*============================================================================*/</span>
114<a name="l00141"></a>00141
115<a name="l00149"></a><a class="code" href="classCInstructionMul.html">00149</a> <span class="keyword">class </span><a class="code" href="classCInstructionMul.html">CInstructionMul</a>
116<a name="l00150"></a>00150 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
117<a name="l00151"></a>00151 {
118<a name="l00152"></a>00152 <span class="keyword">public</span>:
119<a name="l00153"></a>00153 <a class="code" href="classCInstructionMul.html">CInstructionMul</a>()
120<a name="l00154"></a>00154 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"mul"</span>)
121<a name="l00155"></a>00155 {}
122<a name="l00156"></a>00156
123<a name="l00157"></a><a class="code" href="classCInstructionMul.html#1e8f23073a29a0d50fa9d651b986e821">00157</a> <a class="code" href="classCInstructionMul.html">CInstructionMul</a> *<a class="code" href="classCInstructionMul.html#1e8f23073a29a0d50fa9d651b986e821" title="creates a new instance of this instruction">factory</a>()
124<a name="l00158"></a>00158 {
125<a name="l00159"></a>00159 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionMul.html">CInstructionMul</a>;
126<a name="l00160"></a>00160 }
127<a name="l00161"></a>00161
128<a name="l00162"></a>00162 <span class="keywordtype">void</span> <a class="code" href="classCInstructionMul.html#188024d90dd19fcea0687d32e98c67a7" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
129<a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="classCInstructionMul.html#0675f51cbfb5d0d76e605f64b0b2555c" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
130<a name="l00164"></a>00164
131<a name="l00165"></a>00165 <span class="keyword">protected</span>:
132<a name="l00167"></a><a class="code" href="classCInstructionMul.html#c5c3b5b125973a0396c3ad7e0233b79f">00167</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionMul.html#c5c3b5b125973a0396c3ad7e0233b79f">m_regidx1</a>;
133<a name="l00169"></a><a class="code" href="classCInstructionMul.html#eaaaff76fe29741fce14b322d4da8a54">00169</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionMul.html#eaaaff76fe29741fce14b322d4da8a54">m_regidx2</a>;
134<a name="l00171"></a><a class="code" href="classCInstructionMul.html#171d8573f80224249ac14e4c8fec0c7b">00171</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionMul.html#171d8573f80224249ac14e4c8fec0c7b">m_regidx3</a>;
135<a name="l00172"></a>00172 };
136<a name="l00173"></a>00173
137<a name="l00174"></a>00174 <span class="comment">/*============================================================================*/</span>
138<a name="l00175"></a>00175
139<a name="l00183"></a><a class="code" href="classCInstructionDiv.html">00183</a> <span class="keyword">class </span><a class="code" href="classCInstructionDiv.html">CInstructionDiv</a>
140<a name="l00184"></a>00184 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
141<a name="l00185"></a>00185 {
142<a name="l00186"></a>00186 <span class="keyword">public</span>:
143<a name="l00187"></a>00187 <a class="code" href="classCInstructionDiv.html">CInstructionDiv</a>()
144<a name="l00188"></a>00188 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"div"</span>)
145<a name="l00189"></a>00189 {}
146<a name="l00190"></a>00190
147<a name="l00191"></a><a class="code" href="classCInstructionDiv.html#3445767e66ab734ec88b6084a10c4446">00191</a> <a class="code" href="classCInstructionDiv.html">CInstructionDiv</a> *<a class="code" href="classCInstructionDiv.html#3445767e66ab734ec88b6084a10c4446" title="creates a new instance of this instruction">factory</a>()
148<a name="l00192"></a>00192 {
149<a name="l00193"></a>00193 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionDiv.html">CInstructionDiv</a>;
150<a name="l00194"></a>00194 }
151<a name="l00195"></a>00195
152<a name="l00196"></a>00196 <span class="keywordtype">void</span> <a class="code" href="classCInstructionDiv.html#349324231c5516886d99caf07ecb8c0c" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
153<a name="l00197"></a>00197 <span class="keywordtype">void</span> <a class="code" href="classCInstructionDiv.html#7fee4e02bc6904c9d6039aa467aed1f4" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
154<a name="l00198"></a>00198
155<a name="l00199"></a>00199 <span class="keyword">protected</span>:
156<a name="l00201"></a><a class="code" href="classCInstructionDiv.html#356508c5c90a345bdd0055385227852f">00201</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionDiv.html#356508c5c90a345bdd0055385227852f">m_regidx1</a>;
157<a name="l00203"></a><a class="code" href="classCInstructionDiv.html#5a9c4be1386df1fa866927336abe3054">00203</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionDiv.html#5a9c4be1386df1fa866927336abe3054">m_regidx2</a>;
158<a name="l00205"></a><a class="code" href="classCInstructionDiv.html#3e7033bb26ef68b051b0da8a8279df85">00205</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionDiv.html#3e7033bb26ef68b051b0da8a8279df85">m_regidx3</a>;
159<a name="l00206"></a>00206 };
160<a name="l00207"></a>00207
161<a name="l00208"></a>00208 <span class="comment">/*============================================================================*/</span>
162<a name="l00209"></a>00209
163<a name="l00217"></a><a class="code" href="classCInstructionLoad.html">00217</a> <span class="keyword">class </span><a class="code" href="classCInstructionLoad.html">CInstructionLoad</a>
164<a name="l00218"></a>00218 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
165<a name="l00219"></a>00219 {
166<a name="l00220"></a>00220 <span class="keyword">public</span>:
167<a name="l00221"></a>00221 <a class="code" href="classCInstructionLoad.html">CInstructionLoad</a>()
168<a name="l00222"></a>00222 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"load"</span>)
169<a name="l00223"></a>00223 {}
170<a name="l00224"></a>00224
171<a name="l00225"></a><a class="code" href="classCInstructionLoad.html#35c051515ccd6a12dbb39ab4b2e33ded">00225</a> <a class="code" href="classCInstructionLoad.html">CInstructionLoad</a> *<a class="code" href="classCInstructionLoad.html#35c051515ccd6a12dbb39ab4b2e33ded" title="creates a new instance of this instruction">factory</a>()
172<a name="l00226"></a>00226 {
173<a name="l00227"></a>00227 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionLoad.html">CInstructionLoad</a>;
174<a name="l00228"></a>00228 }
175<a name="l00229"></a>00229
176<a name="l00230"></a>00230 <span class="keywordtype">void</span> <a class="code" href="classCInstructionLoad.html#4aa70fe481286e0bcc27f7a9ce896d3d" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
177<a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="classCInstructionLoad.html#fdda1d554401f9bfd32a6300f5ad2bb6" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
178<a name="l00232"></a>00232
179<a name="l00233"></a>00233 <span class="keyword">protected</span>:
180<a name="l00235"></a><a class="code" href="classCInstructionLoad.html#91139a066176d4be83258eba0b412cb6">00235</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionLoad.html#91139a066176d4be83258eba0b412cb6">m_regidx1</a>;
181<a name="l00237"></a><a class="code" href="classCInstructionLoad.html#dbb1c5a56e063ce77d3b8d26355e2a49">00237</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionLoad.html#dbb1c5a56e063ce77d3b8d26355e2a49">m_regidx2</a>;
182<a name="l00238"></a>00238 };
183<a name="l00239"></a>00239
184<a name="l00240"></a>00240 <span class="comment">/*============================================================================*/</span>
185<a name="l00241"></a>00241
186<a name="l00249"></a><a class="code" href="classCInstructionStore.html">00249</a> <span class="keyword">class </span><a class="code" href="classCInstructionStore.html">CInstructionStore</a>
187<a name="l00250"></a>00250 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
188<a name="l00251"></a>00251 {
189<a name="l00252"></a>00252 <span class="keyword">public</span>:
190<a name="l00253"></a>00253 <a class="code" href="classCInstructionStore.html">CInstructionStore</a>()
191<a name="l00254"></a>00254 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"store"</span>)
192<a name="l00255"></a>00255 {}
193<a name="l00256"></a>00256
194<a name="l00257"></a><a class="code" href="classCInstructionStore.html#cab0d4c9bf2cc0d6b1b450ef9aeebcc0">00257</a> <a class="code" href="classCInstructionStore.html">CInstructionStore</a> *<a class="code" href="classCInstructionStore.html#cab0d4c9bf2cc0d6b1b450ef9aeebcc0" title="creates a new instance of this instruction">factory</a>()
195<a name="l00258"></a>00258 {
196<a name="l00259"></a>00259 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionStore.html">CInstructionStore</a>;
197<a name="l00260"></a>00260 }
198<a name="l00261"></a>00261
199<a name="l00262"></a>00262 <span class="keywordtype">void</span> <a class="code" href="classCInstructionStore.html#9848bf36bd3ec75ae481d8ef1f36c6ee" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
200<a name="l00263"></a>00263 <span class="keywordtype">void</span> <a class="code" href="classCInstructionStore.html#fd5ee6692540613ee8cc9a2bf8ff920a" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
201<a name="l00264"></a>00264
202<a name="l00265"></a>00265 <span class="keyword">protected</span>:
203<a name="l00267"></a><a class="code" href="classCInstructionStore.html#5e57d0d27d70f13a590355f5c1782cc9">00267</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionStore.html#5e57d0d27d70f13a590355f5c1782cc9">m_regidx1</a>;
204<a name="l00269"></a><a class="code" href="classCInstructionStore.html#d960c6b85e7022704b4d7d059e1766d1">00269</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionStore.html#d960c6b85e7022704b4d7d059e1766d1">m_regidx2</a>;
205<a name="l00270"></a>00270 };
206<a name="l00271"></a>00271
207<a name="l00272"></a>00272 <span class="comment">/*============================================================================*/</span>
208<a name="l00273"></a>00273
209<a name="l00281"></a><a class="code" href="classCInstructionTest.html">00281</a> <span class="keyword">class </span><a class="code" href="classCInstructionTest.html">CInstructionTest</a>
210<a name="l00282"></a>00282 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
211<a name="l00283"></a>00283 {
212<a name="l00284"></a>00284 <span class="keyword">public</span>:
213<a name="l00285"></a>00285 <a class="code" href="classCInstructionTest.html">CInstructionTest</a>()
214<a name="l00286"></a>00286 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"test"</span>)
215<a name="l00287"></a>00287 {}
216<a name="l00288"></a>00288
217<a name="l00289"></a><a class="code" href="classCInstructionTest.html#9e4e1ac29b5173a70dc1172bbb096671">00289</a> <a class="code" href="classCInstructionTest.html">CInstructionTest</a> *<a class="code" href="classCInstructionTest.html#9e4e1ac29b5173a70dc1172bbb096671" title="creates a new instance of this instruction">factory</a>()
218<a name="l00290"></a>00290 {
219<a name="l00291"></a>00291 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionTest.html">CInstructionTest</a>;
220<a name="l00292"></a>00292 }
221<a name="l00293"></a>00293
222<a name="l00294"></a>00294 <span class="keywordtype">void</span> <a class="code" href="classCInstructionTest.html#b09f0e02ab71b01af6eda0152d1fc975" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
223<a name="l00295"></a>00295 <span class="keywordtype">void</span> <a class="code" href="classCInstructionTest.html#955cf58c41c9e305059baea28b65cf3a" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
224<a name="l00296"></a>00296
225<a name="l00297"></a>00297 <span class="keyword">protected</span>:
226<a name="l00299"></a><a class="code" href="classCInstructionTest.html#26744f0f306f4a181936fc6e389eb9e3">00299</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionTest.html#26744f0f306f4a181936fc6e389eb9e3">m_regidx1</a>;
227<a name="l00300"></a>00300 };
228<a name="l00301"></a>00301
229<a name="l00302"></a>00302 <span class="comment">/*============================================================================*/</span>
230<a name="l00303"></a>00303
231<a name="l00310"></a><a class="code" href="classCInstructionLabel.html">00310</a> <span class="keyword">class </span><a class="code" href="classCInstructionLabel.html">CInstructionLabel</a>
232<a name="l00311"></a>00311 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
233<a name="l00312"></a>00312 {
234<a name="l00313"></a>00313 <span class="keyword">public</span>:
235<a name="l00314"></a>00314 <a class="code" href="classCInstructionLabel.html">CInstructionLabel</a>()
236<a name="l00315"></a>00315 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"label"</span>)
237<a name="l00316"></a>00316 {}
238<a name="l00317"></a>00317
239<a name="l00318"></a><a class="code" href="classCInstructionLabel.html#66ba5bd6facecd45f3616fc94eb2845f">00318</a> <a class="code" href="classCInstructionLabel.html">CInstructionLabel</a> *<a class="code" href="classCInstructionLabel.html#66ba5bd6facecd45f3616fc94eb2845f" title="creates a new instance of this instruction">factory</a>()
240<a name="l00319"></a>00319 {
241<a name="l00320"></a>00320 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionLabel.html">CInstructionLabel</a>;
242<a name="l00321"></a>00321 }
243<a name="l00322"></a>00322
244<a name="l00323"></a><a class="code" href="classCInstructionLabel.html#321fd849ae169d900964431b4100321f">00323</a> <span class="keywordtype">void</span> <a class="code" href="classCInstructionLabel.html#321fd849ae169d900964431b4100321f" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params)
245<a name="l00324"></a>00324 {}
246<a name="l00325"></a>00325
247<a name="l00326"></a><a class="code" href="classCInstructionLabel.html#665f2fc395ffed3bd968659f67868f53">00326</a> <span class="keywordtype">void</span> <a class="code" href="classCInstructionLabel.html#665f2fc395ffed3bd968659f67868f53" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu)
248<a name="l00327"></a>00327 {}
249<a name="l00328"></a>00328 };
250<a name="l00329"></a>00329
251<a name="l00330"></a>00330 <span class="comment">/*============================================================================*/</span>
252<a name="l00331"></a>00331
253<a name="l00339"></a><a class="code" href="classCInstructionJumpA.html">00339</a> <span class="keyword">class </span><a class="code" href="classCInstructionJumpA.html">CInstructionJumpA</a>
254<a name="l00340"></a>00340 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
255<a name="l00341"></a>00341 {
256<a name="l00342"></a>00342 <span class="keyword">public</span>:
257<a name="l00343"></a>00343 <a class="code" href="classCInstructionJumpA.html">CInstructionJumpA</a>()
258<a name="l00344"></a>00344 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"jumpa"</span>), <a class="code" href="classCInstructionJumpA.html#ee10410094e2b3781da3cb53c390fb9e">m_addr</a>(<span class="stringliteral">""</span>)
259<a name="l00345"></a>00345 {}
260<a name="l00346"></a>00346
261<a name="l00347"></a><a class="code" href="classCInstructionJumpA.html#d7679ea0d70ab9725f84dcce76adc057">00347</a> <a class="code" href="classCInstructionJumpA.html">CInstructionJumpA</a> *<a class="code" href="classCInstructionJumpA.html#d7679ea0d70ab9725f84dcce76adc057" title="creates a new instance of this instruction">factory</a>()
262<a name="l00348"></a>00348 {
263<a name="l00349"></a>00349 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionJumpA.html">CInstructionJumpA</a>;
264<a name="l00350"></a>00350 }
265<a name="l00351"></a>00351
266<a name="l00352"></a>00352 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpA.html#f772a57214b192263594d2ff46f03a1e" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
267<a name="l00353"></a>00353 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpA.html#76daeedb9c7cb3be0173580be9390887" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
268<a name="l00354"></a>00354
269<a name="l00355"></a>00355 <span class="keyword">protected</span>:
270<a name="l00357"></a><a class="code" href="classCInstructionJumpA.html#ee10410094e2b3781da3cb53c390fb9e">00357</a> std::string <a class="code" href="classCInstructionJumpA.html#ee10410094e2b3781da3cb53c390fb9e">m_addr</a>;
271<a name="l00358"></a>00358 };
272<a name="l00359"></a>00359
273<a name="l00360"></a>00360 <span class="comment">/*============================================================================*/</span>
274<a name="l00361"></a>00361
275<a name="l00369"></a><a class="code" href="classCInstructionJumpZ.html">00369</a> <span class="keyword">class </span><a class="code" href="classCInstructionJumpZ.html">CInstructionJumpZ</a>
276<a name="l00370"></a>00370 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
277<a name="l00371"></a>00371 {
278<a name="l00372"></a>00372 <span class="keyword">public</span>:
279<a name="l00373"></a>00373 <a class="code" href="classCInstructionJumpZ.html">CInstructionJumpZ</a>()
280<a name="l00374"></a>00374 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"jumpz"</span>), <a class="code" href="classCInstructionJumpZ.html#4f0147cd62010e0d178c9259737e8c10">m_addr</a>(<span class="stringliteral">""</span>)
281<a name="l00375"></a>00375 {}
282<a name="l00376"></a>00376
283<a name="l00377"></a><a class="code" href="classCInstructionJumpZ.html#e0750f1ce4a5746be3317024f4ef92eb">00377</a> <a class="code" href="classCInstructionJumpZ.html">CInstructionJumpZ</a> *<a class="code" href="classCInstructionJumpZ.html#e0750f1ce4a5746be3317024f4ef92eb" title="creates a new instance of this instruction">factory</a>()
284<a name="l00378"></a>00378 {
285<a name="l00379"></a>00379 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionJumpZ.html">CInstructionJumpZ</a>;
286<a name="l00380"></a>00380 }
287<a name="l00381"></a>00381
288<a name="l00382"></a>00382 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpZ.html#e4c05192b829d2bcc1e838de195ef3d9" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
289<a name="l00383"></a>00383 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpZ.html#92f15deda156ebd20e8af47589753783" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
290<a name="l00384"></a>00384
291<a name="l00385"></a>00385 <span class="keyword">protected</span>:
292<a name="l00387"></a><a class="code" href="classCInstructionJumpZ.html#4f0147cd62010e0d178c9259737e8c10">00387</a> std::string <a class="code" href="classCInstructionJumpZ.html#4f0147cd62010e0d178c9259737e8c10">m_addr</a>;
293<a name="l00388"></a>00388 };
294<a name="l00389"></a>00389
295<a name="l00390"></a>00390 <span class="comment">/*============================================================================*/</span>
296<a name="l00391"></a>00391
297<a name="l00399"></a><a class="code" href="classCInstructionJumpS.html">00399</a> <span class="keyword">class </span><a class="code" href="classCInstructionJumpS.html">CInstructionJumpS</a>
298<a name="l00400"></a>00400 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
299<a name="l00401"></a>00401 {
300<a name="l00402"></a>00402 <span class="keyword">public</span>:
301<a name="l00403"></a>00403 <a class="code" href="classCInstructionJumpS.html">CInstructionJumpS</a>()
302<a name="l00404"></a>00404 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"jumps"</span>), <a class="code" href="classCInstructionJumpS.html#f610b22fcf027db2ad2152c52c006eda">m_addr</a>(<span class="stringliteral">""</span>)
303<a name="l00405"></a>00405 {}
304<a name="l00406"></a>00406
305<a name="l00407"></a><a class="code" href="classCInstructionJumpS.html#4b25703a62dafb568700dcad217f7ba6">00407</a> <a class="code" href="classCInstructionJumpS.html">CInstructionJumpS</a> *<a class="code" href="classCInstructionJumpS.html#4b25703a62dafb568700dcad217f7ba6" title="creates a new instance of this instruction">factory</a>()
306<a name="l00408"></a>00408 {
307<a name="l00409"></a>00409 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionJumpS.html">CInstructionJumpS</a>;
308<a name="l00410"></a>00410 }
309<a name="l00411"></a>00411
310<a name="l00412"></a>00412 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpS.html#671d749a6e93f26851879c4ceac09f4c" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
311<a name="l00413"></a>00413 <span class="keywordtype">void</span> <a class="code" href="classCInstructionJumpS.html#8c2e8e077463e64ca64204bb6ed20f71" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
312<a name="l00414"></a>00414
313<a name="l00415"></a>00415 <span class="keyword">protected</span>:
314<a name="l00417"></a><a class="code" href="classCInstructionJumpS.html#f610b22fcf027db2ad2152c52c006eda">00417</a> std::string <a class="code" href="classCInstructionJumpS.html#f610b22fcf027db2ad2152c52c006eda">m_addr</a>;
315<a name="l00418"></a>00418 };
316<a name="l00419"></a>00419
317<a name="l00420"></a>00420 <span class="comment">/*============================================================================*/</span>
318<a name="l00421"></a>00421
319<a name="l00429"></a><a class="code" href="classCInstructionWrite.html">00429</a> <span class="keyword">class </span><a class="code" href="classCInstructionWrite.html">CInstructionWrite</a>
320<a name="l00430"></a>00430 : <span class="keyword">public</span> <a class="code" href="classCInstruction.html">CInstruction</a>
321<a name="l00431"></a>00431 {
322<a name="l00432"></a>00432 <span class="keyword">public</span>:
323<a name="l00433"></a>00433 <a class="code" href="classCInstructionWrite.html">CInstructionWrite</a>()
324<a name="l00434"></a>00434 : <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(<span class="stringliteral">"write"</span>), <a class="code" href="classCInstructionWrite.html#a8ac6c36d3fbbfedfa2311f15c0608cc">m_dev</a>(<span class="stringliteral">""</span>)
325<a name="l00435"></a>00435 {}
326<a name="l00436"></a>00436
327<a name="l00437"></a><a class="code" href="classCInstructionWrite.html#a33ddc8fb13dfaa253704eb0952f3cea">00437</a> <a class="code" href="classCInstructionWrite.html">CInstructionWrite</a> *<a class="code" href="classCInstructionWrite.html#a33ddc8fb13dfaa253704eb0952f3cea" title="creates a new instance of this instruction">factory</a>()
328<a name="l00438"></a>00438 {
329<a name="l00439"></a>00439 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classCInstructionWrite.html">CInstructionWrite</a>;
330<a name="l00440"></a>00440 }
331<a name="l00441"></a>00441
332<a name="l00442"></a>00442 <span class="keywordtype">void</span> <a class="code" href="classCInstructionWrite.html#23f5bb8e4b8a74f7a8703d593323b991" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list&lt;std::string&gt;&amp; params);
333<a name="l00443"></a>00443 <span class="keywordtype">void</span> <a class="code" href="classCInstructionWrite.html#1852e50c21b758a4db205a6cd20e208d" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu);
334<a name="l00444"></a>00444
335<a name="l00445"></a>00445 <span class="keyword">protected</span>:
336<a name="l00447"></a><a class="code" href="classCInstructionWrite.html#7af118a6f35320bbbee55051188311d6">00447</a> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstructionWrite.html#7af118a6f35320bbbee55051188311d6">m_regidx1</a>;
337<a name="l00449"></a><a class="code" href="classCInstructionWrite.html#a8ac6c36d3fbbfedfa2311f15c0608cc">00449</a> std::string <a class="code" href="classCInstructionWrite.html#a8ac6c36d3fbbfedfa2311f15c0608cc">m_dev</a>;
338<a name="l00450"></a>00450 };
339<a name="l00451"></a>00451
340<a name="l00452"></a>00452 <span class="preprocessor">#endif</span>
341<a name="l00453"></a>00453 <span class="preprocessor"></span>
342<a name="l00454"></a>00454 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
343</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu May 14 18:19:16 2009 for mycpu by&nbsp;
344<a href="http://www.doxygen.org/index.html">
345<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
346</body>
347</html>