diff options
Diffstat (limited to 'ue3/mycpu/instructions.h')
| -rw-r--r-- | ue3/mycpu/instructions.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h new file mode 100644 index 0000000..ebd1533 --- /dev/null +++ b/ue3/mycpu/instructions.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /** | ||
| 2 | * @module instructions | ||
| 3 | * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) | ||
| 4 | * @brief TODO | ||
| 5 | * @date 10.05.2009 | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef INSTRUCTIONS_H | ||
| 9 | #define INSTRUCTIONS_H 1 | ||
| 10 | |||
| 11 | #include "cinstruction.h" | ||
| 12 | #include "ccpu.h" | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @class CInstructionInc | ||
| 16 | * | ||
| 17 | * TODO | ||
| 18 | */ | ||
| 19 | class CInstructionInc | ||
| 20 | : public CInstruction | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** | ||
| 24 | * @method CInstruction | ||
| 25 | * @brief Default ctor | ||
| 26 | * @param - | ||
| 27 | * @return - | ||
| 28 | * @globalvars none | ||
| 29 | * @exception none | ||
| 30 | * @conditions none | ||
| 31 | */ | ||
| 32 | CInstructionInc() | ||
| 33 | : CInstruction("inc") | ||
| 34 | {}; | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @method ~CInstruction | ||
| 38 | * @brief Default dtor | ||
| 39 | * @param - | ||
| 40 | * @return - | ||
| 41 | * @globalvars none | ||
| 42 | * @exception none | ||
| 43 | * @conditions none | ||
| 44 | */ | ||
| 45 | ~CInstructionInc() | ||
| 46 | {}; | ||
| 47 | |||
| 48 | /* TODO */ | ||
| 49 | CInstructionInc *factory() | ||
| 50 | { | ||
| 51 | return new CInstructionInc; | ||
| 52 | } | ||
| 53 | |||
| 54 | /* TODO */ | ||
| 55 | void compile(std::list<std::string>& params); | ||
| 56 | |||
| 57 | /* TODO */ | ||
| 58 | void execute(CCPU *cpu); | ||
| 59 | |||
| 60 | protected: | ||
| 61 | unsigned m_regidx1; | ||
| 62 | }; | ||
| 63 | |||
| 64 | #endif | ||
| 65 | |||
| 66 | /* vim: set et sw=2 ts=2: */ | ||
