diff options
| -rw-r--r-- | ue3/mycpu/ccpu.h | 2 | ||||
| -rw-r--r-- | ue3/mycpu/cdat.h | 20 | ||||
| -rw-r--r-- | ue3/mycpu/cdisplay.h | 1 | ||||
| -rw-r--r-- | ue3/mycpu/cinstruction.h | 5 | ||||
| -rw-r--r-- | ue3/mycpu/instructions.h | 24 |
5 files changed, 39 insertions, 13 deletions
diff --git a/ue3/mycpu/ccpu.h b/ue3/mycpu/ccpu.h index 05b5c03..6849623 100644 --- a/ue3/mycpu/ccpu.h +++ b/ue3/mycpu/ccpu.h | |||
| @@ -106,7 +106,7 @@ class CCPU | |||
| 106 | /** | 106 | /** |
| 107 | * @method setProgram | 107 | * @method setProgram |
| 108 | * @brief set program to execute | 108 | * @brief set program to execute |
| 109 | * @param memory pointer to program | 109 | * @param program pointer to program |
| 110 | * @return - | 110 | * @return - |
| 111 | * @globalvars none | 111 | * @globalvars none |
| 112 | * @exception none | 112 | * @exception none |
diff --git a/ue3/mycpu/cdat.h b/ue3/mycpu/cdat.h index c656b99..a533fae 100644 --- a/ue3/mycpu/cdat.h +++ b/ue3/mycpu/cdat.h | |||
| @@ -102,7 +102,7 @@ class CDatT | |||
| 102 | /** | 102 | /** |
| 103 | * @method operator< | 103 | * @method operator< |
| 104 | * @brief implementation of operator < | 104 | * @brief implementation of operator < |
| 105 | * @param reference to CDatT | 105 | * @param x reference to CDatT |
| 106 | * @return true if cdat is less than object x | 106 | * @return true if cdat is less than object x |
| 107 | * @globalvars none | 107 | * @globalvars none |
| 108 | * @exception none | 108 | * @exception none |
| @@ -116,7 +116,7 @@ class CDatT | |||
| 116 | /** | 116 | /** |
| 117 | * @method operator== | 117 | * @method operator== |
| 118 | * @brief implementation of operator == | 118 | * @brief implementation of operator == |
| 119 | * @param reference to CDatT | 119 | * @param x reference to CDatT |
| 120 | * @return true if cdat equals object x | 120 | * @return true if cdat equals object x |
| 121 | * @globalvars none | 121 | * @globalvars none |
| 122 | * @exception none | 122 | * @exception none |
| @@ -130,7 +130,7 @@ class CDatT | |||
| 130 | /** | 130 | /** |
| 131 | * @method operator+= | 131 | * @method operator+= |
| 132 | * @brief implementation of operator += | 132 | * @brief implementation of operator += |
| 133 | * @param reference to CDatT | 133 | * @param x reference to CDatT |
| 134 | * @return refecence to CDatT | 134 | * @return refecence to CDatT |
| 135 | * @globalvars none | 135 | * @globalvars none |
| 136 | * @exception none | 136 | * @exception none |
| @@ -145,7 +145,7 @@ class CDatT | |||
| 145 | /** | 145 | /** |
| 146 | * @method operator-= | 146 | * @method operator-= |
| 147 | * @brief implementation of operator -= | 147 | * @brief implementation of operator -= |
| 148 | * @param reference to CDatT | 148 | * @param x reference to CDatT |
| 149 | * @return refecence to CDatT | 149 | * @return refecence to CDatT |
| 150 | * @globalvars none | 150 | * @globalvars none |
| 151 | * @exception none | 151 | * @exception none |
| @@ -160,7 +160,7 @@ class CDatT | |||
| 160 | /** | 160 | /** |
| 161 | * @method operator*= | 161 | * @method operator*= |
| 162 | * @brief implementation of operator *= | 162 | * @brief implementation of operator *= |
| 163 | * @param reference to CDatT | 163 | * @param x reference to CDatT |
| 164 | * @return refecence to CDatT | 164 | * @return refecence to CDatT |
| 165 | * @globalvars none | 165 | * @globalvars none |
| 166 | * @exception none | 166 | * @exception none |
| @@ -175,7 +175,7 @@ class CDatT | |||
| 175 | /** | 175 | /** |
| 176 | * @method operator/= | 176 | * @method operator/= |
| 177 | * @brief implementation of operator /= | 177 | * @brief implementation of operator /= |
| 178 | * @param reference to CDatT | 178 | * @param x reference to CDatT |
| 179 | * @return refecence to CDatT | 179 | * @return refecence to CDatT |
| 180 | * @globalvars none | 180 | * @globalvars none |
| 181 | * @exception none | 181 | * @exception none |
| @@ -190,7 +190,7 @@ class CDatT | |||
| 190 | /** | 190 | /** |
| 191 | * @method operator%= | 191 | * @method operator%= |
| 192 | * @brief implementation of operator %= | 192 | * @brief implementation of operator %= |
| 193 | * @param reference to CDatT | 193 | * @param x reference to CDatT |
| 194 | * @return refecence to CDatT | 194 | * @return refecence to CDatT |
| 195 | * @globalvars none | 195 | * @globalvars none |
| 196 | * @exception none | 196 | * @exception none |
| @@ -205,7 +205,7 @@ class CDatT | |||
| 205 | /** | 205 | /** |
| 206 | * @method operator|= | 206 | * @method operator|= |
| 207 | * @brief implementation of operator |= | 207 | * @brief implementation of operator |= |
| 208 | * @param reference to CDatT | 208 | * @param x reference to CDatT |
| 209 | * @return refecence to CDatT | 209 | * @return refecence to CDatT |
| 210 | * @globalvars none | 210 | * @globalvars none |
| 211 | * @exception none | 211 | * @exception none |
| @@ -220,7 +220,7 @@ class CDatT | |||
| 220 | /** | 220 | /** |
| 221 | * @method operator&= | 221 | * @method operator&= |
| 222 | * @brief implementation of operator &= | 222 | * @brief implementation of operator &= |
| 223 | * @param reference to CDatT | 223 | * @param x reference to CDatT |
| 224 | * @return refecence to CDatT | 224 | * @return refecence to CDatT |
| 225 | * @globalvars none | 225 | * @globalvars none |
| 226 | * @exception none | 226 | * @exception none |
| @@ -235,7 +235,7 @@ class CDatT | |||
| 235 | /** | 235 | /** |
| 236 | * @method operator^= | 236 | * @method operator^= |
| 237 | * @brief implementation of operator ^= | 237 | * @brief implementation of operator ^= |
| 238 | * @param reference to CDatT | 238 | * @param x reference to CDatT |
| 239 | * @return refecence to CDatT | 239 | * @return refecence to CDatT |
| 240 | * @globalvars none | 240 | * @globalvars none |
| 241 | * @exception none | 241 | * @exception none |
diff --git a/ue3/mycpu/cdisplay.h b/ue3/mycpu/cdisplay.h index c2a84a6..0a0a723 100644 --- a/ue3/mycpu/cdisplay.h +++ b/ue3/mycpu/cdisplay.h | |||
| @@ -68,6 +68,7 @@ class CDisplay | |||
| 68 | 68 | ||
| 69 | protected: | 69 | protected: |
| 70 | /* members */ | 70 | /* members */ |
| 71 | /** name of display */ | ||
| 71 | std::string m_name; | 72 | std::string m_name; |
| 72 | }; | 73 | }; |
| 73 | 74 | ||
diff --git a/ue3/mycpu/cinstruction.h b/ue3/mycpu/cinstruction.h index 942d8cf..4cc69de 100644 --- a/ue3/mycpu/cinstruction.h +++ b/ue3/mycpu/cinstruction.h | |||
| @@ -50,7 +50,7 @@ class CInstruction | |||
| 50 | /** | 50 | /** |
| 51 | * @method operator== | 51 | * @method operator== |
| 52 | * @brief implementation of operator == | 52 | * @brief implementation of operator == |
| 53 | * @param reference to std::string | 53 | * @param name reference to std::string |
| 54 | * @return true if instructionname is name | 54 | * @return true if instructionname is name |
| 55 | * @globalvars none | 55 | * @globalvars none |
| 56 | * @exception none | 56 | * @exception none |
| @@ -109,7 +109,7 @@ class CInstruction | |||
| 109 | * @method operator<< | 109 | * @method operator<< |
| 110 | * @brief Shift/output operator for outputstream | 110 | * @brief Shift/output operator for outputstream |
| 111 | * @param stream reference to outputstream | 111 | * @param stream reference to outputstream |
| 112 | * @param cdat object which will be printed to stream | 112 | * @param instr object which will be printed to stream |
| 113 | * @return reference to outputstream | 113 | * @return reference to outputstream |
| 114 | * @globalvars none | 114 | * @globalvars none |
| 115 | * @exception none | 115 | * @exception none |
| @@ -180,6 +180,7 @@ class CInstruction | |||
| 180 | 180 | ||
| 181 | protected: | 181 | protected: |
| 182 | /* members */ | 182 | /* members */ |
| 183 | /** name of instruction */ | ||
| 183 | std::string m_name; | 184 | std::string m_name; |
| 184 | }; | 185 | }; |
| 185 | 186 | ||
diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h index a52b991..4c36562 100644 --- a/ue3/mycpu/instructions.h +++ b/ue3/mycpu/instructions.h | |||
| @@ -35,6 +35,7 @@ class CInstructionInc | |||
| 35 | void execute(CCPU *cpu); | 35 | void execute(CCPU *cpu); |
| 36 | 36 | ||
| 37 | protected: | 37 | protected: |
| 38 | /** register number */ | ||
| 38 | unsigned m_regidx1; | 39 | unsigned m_regidx1; |
| 39 | }; | 40 | }; |
| 40 | 41 | ||
| @@ -64,6 +65,7 @@ class CInstructionDec | |||
| 64 | void execute(CCPU *cpu); | 65 | void execute(CCPU *cpu); |
| 65 | 66 | ||
| 66 | protected: | 67 | protected: |
| 68 | /** register number */ | ||
| 67 | unsigned m_regidx1; | 69 | unsigned m_regidx1; |
| 68 | }; | 70 | }; |
| 69 | 71 | ||
| @@ -93,8 +95,11 @@ class CInstructionAdd | |||
| 93 | void execute(CCPU *cpu); | 95 | void execute(CCPU *cpu); |
| 94 | 96 | ||
| 95 | protected: | 97 | protected: |
| 98 | /** register number */ | ||
| 96 | unsigned m_regidx1; | 99 | unsigned m_regidx1; |
| 100 | /** register number */ | ||
| 97 | unsigned m_regidx2; | 101 | unsigned m_regidx2; |
| 102 | /** register number */ | ||
| 98 | unsigned m_regidx3; | 103 | unsigned m_regidx3; |
| 99 | }; | 104 | }; |
| 100 | 105 | ||
| @@ -124,8 +129,11 @@ class CInstructionSub | |||
| 124 | void execute(CCPU *cpu); | 129 | void execute(CCPU *cpu); |
| 125 | 130 | ||
| 126 | protected: | 131 | protected: |
| 132 | /** register number */ | ||
| 127 | unsigned m_regidx1; | 133 | unsigned m_regidx1; |
| 134 | /** register number */ | ||
| 128 | unsigned m_regidx2; | 135 | unsigned m_regidx2; |
| 136 | /** register number */ | ||
| 129 | unsigned m_regidx3; | 137 | unsigned m_regidx3; |
| 130 | }; | 138 | }; |
| 131 | 139 | ||
| @@ -155,8 +163,11 @@ class CInstructionMul | |||
| 155 | void execute(CCPU *cpu); | 163 | void execute(CCPU *cpu); |
| 156 | 164 | ||
| 157 | protected: | 165 | protected: |
| 166 | /** register number */ | ||
| 158 | unsigned m_regidx1; | 167 | unsigned m_regidx1; |
| 168 | /** register number */ | ||
| 159 | unsigned m_regidx2; | 169 | unsigned m_regidx2; |
| 170 | /** register number */ | ||
| 160 | unsigned m_regidx3; | 171 | unsigned m_regidx3; |
| 161 | }; | 172 | }; |
| 162 | 173 | ||
| @@ -186,8 +197,11 @@ class CInstructionDiv | |||
| 186 | void execute(CCPU *cpu); | 197 | void execute(CCPU *cpu); |
| 187 | 198 | ||
| 188 | protected: | 199 | protected: |
| 200 | /** register number */ | ||
| 189 | unsigned m_regidx1; | 201 | unsigned m_regidx1; |
| 202 | /** register number */ | ||
| 190 | unsigned m_regidx2; | 203 | unsigned m_regidx2; |
| 204 | /** register number */ | ||
| 191 | unsigned m_regidx3; | 205 | unsigned m_regidx3; |
| 192 | }; | 206 | }; |
| 193 | 207 | ||
| @@ -217,7 +231,9 @@ class CInstructionLoad | |||
| 217 | void execute(CCPU *cpu); | 231 | void execute(CCPU *cpu); |
| 218 | 232 | ||
| 219 | protected: | 233 | protected: |
| 234 | /** register number */ | ||
| 220 | unsigned m_regidx1; | 235 | unsigned m_regidx1; |
| 236 | /** register number */ | ||
| 221 | unsigned m_regidx2; | 237 | unsigned m_regidx2; |
| 222 | }; | 238 | }; |
| 223 | 239 | ||
| @@ -247,7 +263,9 @@ class CInstructionStore | |||
| 247 | void execute(CCPU *cpu); | 263 | void execute(CCPU *cpu); |
| 248 | 264 | ||
| 249 | protected: | 265 | protected: |
| 266 | /** register number */ | ||
| 250 | unsigned m_regidx1; | 267 | unsigned m_regidx1; |
| 268 | /** register number */ | ||
| 251 | unsigned m_regidx2; | 269 | unsigned m_regidx2; |
| 252 | }; | 270 | }; |
| 253 | 271 | ||
| @@ -277,6 +295,7 @@ class CInstructionTest | |||
| 277 | void execute(CCPU *cpu); | 295 | void execute(CCPU *cpu); |
| 278 | 296 | ||
| 279 | protected: | 297 | protected: |
| 298 | /** register number */ | ||
| 280 | unsigned m_regidx1; | 299 | unsigned m_regidx1; |
| 281 | }; | 300 | }; |
| 282 | 301 | ||
| @@ -334,6 +353,7 @@ class CInstructionJumpA | |||
| 334 | void execute(CCPU *cpu); | 353 | void execute(CCPU *cpu); |
| 335 | 354 | ||
| 336 | protected: | 355 | protected: |
| 356 | /** labelname */ | ||
| 337 | std::string m_addr; | 357 | std::string m_addr; |
| 338 | }; | 358 | }; |
| 339 | 359 | ||
| @@ -363,6 +383,7 @@ class CInstructionJumpZ | |||
| 363 | void execute(CCPU *cpu); | 383 | void execute(CCPU *cpu); |
| 364 | 384 | ||
| 365 | protected: | 385 | protected: |
| 386 | /** labelname */ | ||
| 366 | std::string m_addr; | 387 | std::string m_addr; |
| 367 | }; | 388 | }; |
| 368 | 389 | ||
| @@ -392,6 +413,7 @@ class CInstructionJumpS | |||
| 392 | void execute(CCPU *cpu); | 413 | void execute(CCPU *cpu); |
| 393 | 414 | ||
| 394 | protected: | 415 | protected: |
| 416 | /** labelname */ | ||
| 395 | std::string m_addr; | 417 | std::string m_addr; |
| 396 | }; | 418 | }; |
| 397 | 419 | ||
| @@ -421,7 +443,9 @@ class CInstructionWrite | |||
| 421 | void execute(CCPU *cpu); | 443 | void execute(CCPU *cpu); |
| 422 | 444 | ||
| 423 | protected: | 445 | protected: |
| 446 | /** register number */ | ||
| 424 | unsigned m_regidx1; | 447 | unsigned m_regidx1; |
| 448 | /** device name */ | ||
| 425 | std::string m_dev; | 449 | std::string m_dev; |
| 426 | }; | 450 | }; |
| 427 | 451 | ||
