summaryrefslogtreecommitdiffstats
path: root/ue4/mycpu
diff options
context:
space:
mode:
Diffstat (limited to 'ue4/mycpu')
-rw-r--r--ue4/mycpu/ccpu.h2
-rw-r--r--ue4/mycpu/cinstruction.h4
-rw-r--r--ue4/mycpu/mycpu.cpp14
3 files changed, 16 insertions, 4 deletions
diff --git a/ue4/mycpu/ccpu.h b/ue4/mycpu/ccpu.h
index f005b74..5056077 100644
--- a/ue4/mycpu/ccpu.h
+++ b/ue4/mycpu/ccpu.h
@@ -258,7 +258,7 @@ class CCPU
258 * @return - 258 * @return -
259 * @globalvars none 259 * @globalvars none
260 * @exception CCPUError 260 * @exception CCPUError
261 * @pre none 261 * @pre m_memory and m_program still exist
262 * @post none 262 * @post none
263 */ 263 */
264 void run(); 264 void run();
diff --git a/ue4/mycpu/cinstruction.h b/ue4/mycpu/cinstruction.h
index 85122b4..b90563a 100644
--- a/ue4/mycpu/cinstruction.h
+++ b/ue4/mycpu/cinstruction.h
@@ -166,7 +166,7 @@ class CInstruction
166 * @return registernumber 166 * @return registernumber
167 * @globalvars none 167 * @globalvars none
168 * @exception CInstructionError 168 * @exception CInstructionError
169 * @pre none 169 * @pre str != NULL
170 * @post none 170 * @post none
171 */ 171 */
172 virtual const unsigned parseRegister(const std::string& str); 172 virtual const unsigned parseRegister(const std::string& str);
@@ -217,7 +217,7 @@ class CInstruction
217 * @return - 217 * @return -
218 * @globalvars none 218 * @globalvars none
219 * @exception CInstructionError 219 * @exception CInstructionError
220 * @pre none 220 * @pre cpu valid (memory, program, registers valid)
221 * @post none 221 * @post none
222 */ 222 */
223 virtual void execute(CCPU<T> *cpu) = 0; 223 virtual void execute(CCPU<T> *cpu) = 0;
diff --git a/ue4/mycpu/mycpu.cpp b/ue4/mycpu/mycpu.cpp
index aefe0cb..7f45d33 100644
--- a/ue4/mycpu/mycpu.cpp
+++ b/ue4/mycpu/mycpu.cpp
@@ -29,7 +29,19 @@
29using namespace std; 29using namespace std;
30namespace po = boost::program_options; 30namespace po = boost::program_options;
31 31
32/* TODO */ 32/**
33 * @func cpu_run
34 * @brief template for executing cpu with different datatype
35 * @param me string to name of me
36 * @param vm po::variables_map
37 * @param registers number of registers
38 * @param datatype instance of datatype
39 * @return -
40 * @globalvars none
41 * @exception none
42 * @pre none
43 * @post none
44 */
33template<class T> 45template<class T>
34void cpu_run(string& me, po::variables_map& vm, unsigned registers, T& datatype) 46void cpu_run(string& me, po::variables_map& vm, unsigned registers, T& datatype)
35{ 47{