diff options
Diffstat (limited to 'ue3/mycpu/instructions.h')
| -rw-r--r-- | ue3/mycpu/instructions.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 | ||
