diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-14 18:21:15 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-14 18:21:15 +0200 |
| commit | 3563c6dfd0f5f102cb748ecc6ad318601990515e (patch) | |
| tree | 269af83394e84e2a7142dde87fb15dce413aa5c9 /ue3/doxygen/cinstruction_8h-source.html | |
| parent | ad6ca84f6e93f983de926ae71f31f42325986f61 (diff) | |
| download | ooprog-3563c6dfd0f5f102cb748ecc6ad318601990515e.tar.gz ooprog-3563c6dfd0f5f102cb748ecc6ad318601990515e.tar.bz2 ooprog-3563c6dfd0f5f102cb748ecc6ad318601990515e.zip | |
adding doxygen docs
Diffstat (limited to 'ue3/doxygen/cinstruction_8h-source.html')
| -rw-r--r-- | ue3/doxygen/cinstruction_8h-source.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/ue3/doxygen/cinstruction_8h-source.html b/ue3/doxygen/cinstruction_8h-source.html new file mode 100644 index 0000000..3055c9c --- /dev/null +++ b/ue3/doxygen/cinstruction_8h-source.html | |||
| @@ -0,0 +1,85 @@ | |||
| 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/cinstruction.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 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/cinstruction.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 | ||
| 17 | <a name="l00008"></a>00008 <span class="preprocessor">#ifndef CINSTRUCTION_H</span> | ||
| 18 | <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CINSTRUCTION_H 1</span> | ||
| 19 | <a name="l00010"></a>00010 <span class="preprocessor"></span> | ||
| 20 | <a name="l00011"></a>00011 <span class="preprocessor">#include <iostream></span> | ||
| 21 | <a name="l00012"></a>00012 <span class="preprocessor">#include <list></span> | ||
| 22 | <a name="l00013"></a>00013 | ||
| 23 | <a name="l00014"></a>00014 <span class="comment">/* forward declare CCPU */</span> | ||
| 24 | <a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="classCCPU.html">CCPU</a>; | ||
| 25 | <a name="l00016"></a>00016 | ||
| 26 | <a name="l00022"></a><a class="code" href="classCInstruction.html">00022</a> <span class="keyword">class </span><a class="code" href="classCInstruction.html">CInstruction</a> | ||
| 27 | <a name="l00023"></a>00023 { | ||
| 28 | <a name="l00024"></a>00024 <span class="keyword">public</span>: | ||
| 29 | <a name="l00034"></a><a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78">00034</a> <a class="code" href="classCInstruction.html#263195c9e1f109bf44f7040727dcfa78" title="Default ctor.">CInstruction</a>(std::string name) | ||
| 30 | <a name="l00035"></a>00035 : <a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">m_name</a>(name) | ||
| 31 | <a name="l00036"></a>00036 {} | ||
| 32 | <a name="l00037"></a>00037 | ||
| 33 | <a name="l00047"></a><a class="code" href="classCInstruction.html#d2ded1d8675749bc39a085a8c50a6612">00047</a> <span class="keyword">virtual</span> <a class="code" href="classCInstruction.html#d2ded1d8675749bc39a085a8c50a6612" title="Default dtor.">~CInstruction</a>() | ||
| 34 | <a name="l00048"></a>00048 {} | ||
| 35 | <a name="l00049"></a>00049 | ||
| 36 | <a name="l00059"></a><a class="code" href="classCInstruction.html#395c9bde315efbc0eefd0bbb1586950a">00059</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCInstruction.html#395c9bde315efbc0eefd0bbb1586950a" title="implementation of operator ==">operator==</a>(std::string& name) | ||
| 37 | <a name="l00060"></a>00060 { | ||
| 38 | <a name="l00061"></a>00061 <span class="keywordflow">return</span> name == <a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">m_name</a>; | ||
| 39 | <a name="l00062"></a>00062 } | ||
| 40 | <a name="l00063"></a>00063 | ||
| 41 | <a name="l00073"></a><a class="code" href="classCInstruction.html#b5b2364b0cccc6db2f5c3aaccee8aa43">00073</a> <span class="keyword">virtual</span> <a class="code" href="classCInstruction.html">CInstruction</a>& <a class="code" href="classCInstruction.html#b5b2364b0cccc6db2f5c3aaccee8aa43" title="implementation of operator (CCPU)">operator()</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu) | ||
| 42 | <a name="l00074"></a>00074 { | ||
| 43 | <a name="l00075"></a>00075 <a class="code" href="classCInstruction.html#127fd09a772e9f584550cd342af770d1" title="executes the instruction">execute</a>(cpu); | ||
| 44 | <a name="l00076"></a>00076 <span class="keywordflow">return</span> *<span class="keyword">this</span>; | ||
| 45 | <a name="l00077"></a>00077 } | ||
| 46 | <a name="l00078"></a>00078 | ||
| 47 | <a name="l00088"></a><a class="code" href="classCInstruction.html#e8187580097fd2ced5a8bc6e6e09fe44">00088</a> <span class="keyword">virtual</span> <span class="keyword">const</span> std::string& <a class="code" href="classCInstruction.html#e8187580097fd2ced5a8bc6e6e09fe44" title="returns instruction name">getName</a>() | ||
| 48 | <a name="l00089"></a>00089 { | ||
| 49 | <a name="l00090"></a>00090 <span class="keywordflow">return</span> <a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">m_name</a>; | ||
| 50 | <a name="l00091"></a>00091 } | ||
| 51 | <a name="l00092"></a>00092 | ||
| 52 | <a name="l00102"></a><a class="code" href="classCInstruction.html#040a2394e2161a65f37ef31d16bb6a35">00102</a> <span class="keyword">virtual</span> std::ostream& <a class="code" href="classCInstruction.html#040a2394e2161a65f37ef31d16bb6a35" title="dumps information about instruction to outputstream">dump</a>(std::ostream& stream) | ||
| 53 | <a name="l00103"></a>00103 { | ||
| 54 | <a name="l00104"></a>00104 stream << <a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">m_name</a>; | ||
| 55 | <a name="l00105"></a>00105 <span class="keywordflow">return</span> stream; | ||
| 56 | <a name="l00106"></a>00106 } | ||
| 57 | <a name="l00107"></a>00107 | ||
| 58 | <a name="l00118"></a><a class="code" href="classCInstruction.html#7651b4c147411bca34a0393adf03507d">00118</a> <span class="keyword">friend</span> std::ostream& <a class="code" href="classCInstruction.html#7651b4c147411bca34a0393adf03507d" title="Shift/output operator for outputstream.">operator<<</a>(std::ostream& stream, <a class="code" href="classCInstruction.html">CInstruction</a>& instr) | ||
| 59 | <a name="l00119"></a>00119 { | ||
| 60 | <a name="l00120"></a>00120 <span class="keywordflow">return</span> instr.<a class="code" href="classCInstruction.html#040a2394e2161a65f37ef31d16bb6a35" title="dumps information about instruction to outputstream">dump</a>(stream); | ||
| 61 | <a name="l00121"></a>00121 } | ||
| 62 | <a name="l00122"></a>00122 | ||
| 63 | <a name="l00132"></a>00132 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <a class="code" href="classCInstruction.html#2723f8875ff0cc4e48d840db1ae5b4a8" title="parses register syntax Rx (e.g. &quot;R1&quot;)">parseRegister</a>(<span class="keyword">const</span> std::string& str); | ||
| 64 | <a name="l00133"></a>00133 | ||
| 65 | <a name="l00145"></a>00145 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCInstruction.html#8e938360a34f1cd3bf799f21e2ce6f6c" title="performs a register boundary check does the register exist in cpu?">checkRegister</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> regidx); | ||
| 66 | <a name="l00146"></a>00146 | ||
| 67 | <a name="l00156"></a>00156 <span class="keyword">virtual</span> <a class="code" href="classCInstruction.html">CInstruction</a> *<a class="code" href="classCInstruction.html#fae8dc231b375db91f874df0d085b7dc" title="creates a new instance of this instruction">factory</a>() = 0; | ||
| 68 | <a name="l00157"></a>00157 | ||
| 69 | <a name="l00168"></a>00168 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCInstruction.html#15e2ce88b04fcf208ba43c43f7dd57aa" title="parses instruction parameters and prepares the instruction for executing">compile</a>(std::list<std::string>& params) = 0; | ||
| 70 | <a name="l00169"></a>00169 | ||
| 71 | <a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCInstruction.html#127fd09a772e9f584550cd342af770d1" title="executes the instruction">execute</a>(<a class="code" href="classCCPU.html">CCPU</a> *cpu) = 0; | ||
| 72 | <a name="l00180"></a>00180 | ||
| 73 | <a name="l00181"></a>00181 <span class="keyword">protected</span>: | ||
| 74 | <a name="l00182"></a>00182 <span class="comment">/* members */</span> | ||
| 75 | <a name="l00184"></a><a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">00184</a> std::string <a class="code" href="classCInstruction.html#0c3b94ae1323d6201d2afd20c8686194">m_name</a>; | ||
| 76 | <a name="l00185"></a>00185 }; | ||
| 77 | <a name="l00186"></a>00186 | ||
| 78 | <a name="l00187"></a>00187 <span class="preprocessor">#endif</span> | ||
| 79 | <a name="l00188"></a>00188 <span class="preprocessor"></span> | ||
| 80 | <a name="l00189"></a>00189 <span class="comment">/* vim: set et sw=2 ts=2: */</span> | ||
| 81 | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu May 14 18:19:16 2009 for mycpu by | ||
| 82 | <a href="http://www.doxygen.org/index.html"> | ||
| 83 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> | ||
| 84 | </body> | ||
| 85 | </html> | ||
