diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-30 16:32:27 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-30 16:32:27 +0200 |
| commit | 9d0b2d638db0f3d1f5b7ec46912c367adefbf91e (patch) | |
| tree | f833cc44a91f4649223e3d6354c0d13a9b008ae9 /ue4 | |
| parent | c78472d9e36202c510a7e00774e5e875cc96207b (diff) | |
| download | ooprog-9d0b2d638db0f3d1f5b7ec46912c367adefbf91e.tar.gz ooprog-9d0b2d638db0f3d1f5b7ec46912c367adefbf91e.tar.bz2 ooprog-9d0b2d638db0f3d1f5b7ec46912c367adefbf91e.zip | |
final stuff
Diffstat (limited to 'ue4')
| -rw-r--r-- | ue4/mycpu/ccpu.h | 2 | ||||
| -rw-r--r-- | ue4/mycpu/cinstruction.h | 4 | ||||
| -rw-r--r-- | ue4/mycpu/mycpu.cpp | 14 |
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 @@ | |||
| 29 | using namespace std; | 29 | using namespace std; |
| 30 | namespace po = boost::program_options; | 30 | namespace 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 | */ | ||
| 33 | template<class T> | 45 | template<class T> |
| 34 | void cpu_run(string& me, po::variables_map& vm, unsigned registers, T& datatype) | 46 | void cpu_run(string& me, po::variables_map& vm, unsigned registers, T& datatype) |
| 35 | { | 47 | { |
